At 18:57 16/07/2009, hakan eryargi wrote: >thank you but i can't get it. simply making AND's and OR's have >same precedence doesnt force user to use parenthesizes. >expression is simply evaluated from left to right ?
Just parse it as normal, but put some code into the tree parser to detect cases you want to consider invalid and raise an error. From the sounds of it, it should be easy to detect; eg. if you're on an OR root and either the left or right expression is an AND root, then it's invalid. 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 -~----------~----~----~----~------~----~------~--~---
