projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integermappable
[sbp.git]
/
src
/
edu
/
berkeley
/
sbp
/
Parser.java
diff --git
a/src/edu/berkeley/sbp/Parser.java
b/src/edu/berkeley/sbp/Parser.java
index
3609182
..
95c3985
100644
(file)
--- a/
src/edu/berkeley/sbp/Parser.java
+++ b/
src/edu/berkeley/sbp/Parser.java
@@
-162,8
+162,10
@@
public abstract class Parser<T extends Token, R> {
}
/** a single state in the LR table and the transitions possible from it */
}
/** a single state in the LR table and the transitions possible from it */
- public class State implements Comparable<Table.State>, Iterable<Position> {
+ public class State implements Comparable<Table.State>, Iterable<Position>, IntegerMappable {
+ public int toInt() { return idx; }
+
/*
public boolean isResolvable(Token t) {
boolean found = false;
/*
public boolean isResolvable(Token t) {
boolean found = false;