JAVACODE void skip_to_matching_braces() { // Code to eat tokens until a matching brace is found } void NT() : { } { A() skip_to_matching_braces() }This will cause JTB to attempt to construct a node of type NT with children of type A and skip_to_matching_braces,which is incorrect.
return new your_production_name();at the end of the Java code.
Maintained by Wanjun Wang, wanjun@purdue.edu. | Created January 6, 1999.
Last modified June 26, 1999. |