Posted By:
Jennifer_Bevan
Posted On:
Monday, May 6, 2002 11:52 AM
Hi, I would like to be able to specify constructor parameters within my class definition. I tried to extend the rule parameter method, by using: class JavaTreeParser extends TreeParser [MyType myarg]; Unfortunately, antlr choked on this, expecting a semicolon after the TreeParser but getting the parameter list: expecting SEMI, found '[MyType myarg] ...(lots of follow-on errors)... rule classDef trapped: java.importdg.g:14: unexpected token MyType myarg I haven't had any luck using the jguru search for this question, or for finding examples of how others may have already done this. Waaah. Any
More>>
Hi,
I would like to be able to specify constructor parameters
within my class definition. I tried to extend the rule
parameter method, by using:
class JavaTreeParser extends TreeParser [MyType myarg];
Unfortunately, antlr choked on this, expecting a
semicolon after the TreeParser but getting the parameter
list:
expecting SEMI, found '[MyType myarg]
...(lots of follow-on errors)...
rule classDef trapped: java.importdg.g:14: unexpected token
MyType myarg
I haven't had any luck using the jguru search for this
question, or for finding examples of how others may have
already done this. Waaah. Anyway, all help is, of
course, greatly appreciated...
Jennifer Bevan
<<Less