Vlastimil Adamovsky schrieb: > Thanks, > > the problem is something like this: > ...... > > Identifier : (Letter | '_') (LetterOrDigit | '_')* ; > > ReservedIdentifier : PseudoVariableReference | ConstantReference; > PseudoVariableReference : 'self' | 'super' | 'thisContext'; > > ConstantReference : 'nil' | 'false' | 'true' ; > > ConstantReference > : 'nil' | 'false' | 'true' > ; > > PseudoVariableReference > : 'self' | 'super' | 'thisContext' > ; > > ReservedIdentifier > : PseudoVariableReference | ConstantReference > ; > > *BindableIdentifier : Identifier - ReservedIdentifier ; //this is > EBNF notation* > > How do I set up a *BindableIdentifier *rule so it is valid for ANTLR?? > > I have to admit, I just started using ANTLR and I like it a lot, but > still, I think the learning curve is very steep.... > > Thanks, > Vlastimil
Well, theoretically you can use C : (~B)=> A; but for better error messages it is recommend just to match the superset and to check in the parser for incorrect characters. Johannes > > > > ------------------------------------------------------------------------ > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address 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 -~----------~----~----~----~------~----~------~--~---
