Hi.
I have some problems with backtrack option and rule arguments.
Example grammar:
grammar testbt;
options
{
language = C;
backtrack = true;
}
expr
@init {
int i = 1;
}
:
num[i] | id[i]
;
num[int i] : '0'..'9'+;
id[int i] : 'a'..'z'+;
Generated files does not compile with error "error C2065: 'i' :
undeclared identifier".
(The problem is that C target does not insert rule arguments into
argument list of autogenerated 'synpred' functions.)
How can I fix this?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.