Skip to content
Snippets Groups Projects
Commit a7603daf authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

initial import

parent 9acec9b1
No related branches found
No related tags found
No related merge requests found
Showing
with 3270 additions and 0 deletions
This diff is collapsed.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This file is part of SableCC. *
* See the file "LICENSE" for copyright information and the *
* terms and conditions for copying, distribution and *
* modification of SableCC. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package org.sablecc.sablecc;
import java.util.*;
public class IntegerCast implements Cast
{
public final static IntegerCast instance = new IntegerCast();
private IntegerCast()
{}
public Object cast(Object o)
{
return (Integer) o;
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This file is part of SableCC. *
* See the file "LICENSE" for copyright information and the *
* terms and conditions for copying, distribution and *
* modification of SableCC. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package org.sablecc.sablecc;
import java.util.*;
public class IntegerComparator implements Comparator
{
public final static IntegerComparator instance = new IntegerComparator();
private IntegerComparator()
{}
public int compare(Object o1, Object o2)
{
return ((Integer) o1).intValue() - ((Integer) o2).intValue();
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This file is part of SableCC. *
* See the file "LICENSE" for copyright information and the *
* terms and conditions for copying, distribution and *
* modification of SableCC. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package org.sablecc.sablecc;
final class LR0ItemAndSetPair
{
public final LR0Item item;
public final int set
;
LR0ItemAndSetPair(LR0Item item, int set
)
{
this.item = item;
this.set = set
;
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment