java-cup/java-cup-lr_parser-constructor.patch

19 lines
621 B
Diff
Raw Normal View History

--- develop/src/java_cup/runtime/lr_parser.java 2006-03-28 14:34:53.000000000 +0300
+++ develop/src/java_cup/runtime/lr_parser.java.f 2007-06-23 11:01:53.000000000 +0300
@@ -121,6 +121,7 @@
* Simple constructor.
*/
public lr_parser() {
+ symbolFactory = new DefaultSymbolFactory();
}
/**
@@ -133,7 +134,6 @@
* Constructor that sets the default scanner and a SymbolFactory
*/
public lr_parser(Scanner s, SymbolFactory symfac) {
- this(); // in case default constructor someday does something
symbolFactory = symfac;
setScanner(s);
}