projects
/
sbp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a5250c
)
expose Parser constructor
author
adam
<adam@megacz.com>
Sun, 23 Jul 2006 06:26:26 +0000
(
02:26
-0400)
committer
adam
<adam@megacz.com>
Sun, 23 Jul 2006 06:26:26 +0000
(
02:26
-0400)
darcs-hash:
20060723062626
-5007d-
65f920162dd7ecdf2da01ce4ce12fa0c4581f770
.gz
TODO
patch
|
blob
|
history
src/edu/berkeley/sbp/Parser.java
patch
|
blob
|
history
diff --git
a/TODO
b/TODO
index
4495d30
..
2432db1
100644
(file)
--- a/
TODO
+++ b/
TODO
@@
-15,7
+15,6
@@
Immediately
- topology no longer needed as an arg to parser
- expose parser's protected method?
- topology no longer needed as an arg to parser
- expose parser's protected method?
- - do Forest/Tree still need a Region?
- copyright notices
- copyright notices
diff --git
a/src/edu/berkeley/sbp/Parser.java
b/src/edu/berkeley/sbp/Parser.java
index
74d7101
..
f216a38
100644
(file)
--- a/
src/edu/berkeley/sbp/Parser.java
+++ b/
src/edu/berkeley/sbp/Parser.java
@@
-11,11
+11,11
@@
public abstract class Parser<Token, NodeType> {
protected final Table<Token> pt;
/** create a parser to parse the grammar with start symbol <tt>u</tt> */
protected final Table<Token> pt;
/** create a parser to parse the grammar with start symbol <tt>u</tt> */
- protected Parser(Union u, Topology<Token> top) { this.pt = new Table<Token>(u, top); }
- protected Parser(Table<Token> pt) { this.pt = pt; }
+ public Parser(Union u, Topology<Token> top) { this.pt = new Table<Token>(u, top); }
+ Parser(Table<Token> pt) { this.pt = pt; }
/** implement this method to create the output forest corresponding to a lone shifted input token */
/** implement this method to create the output forest corresponding to a lone shifted input token */
- protected abstract Forest<NodeType> shiftToken(Token t, Input.Location newloc);
+ public abstract Forest<NodeType> shiftToken(Token t, Input.Location newloc);
boolean helpgc = true;
boolean helpgc = true;