How can I solve mutual recursivity in this case?
value : comparison | 'A' | 'B' | 'C';
comparison : value comparison_operator value;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, the problem is that its ambiguous as given. What do you want it to do for an input like
A <op> B <op> Cwhere<op>is something that matches your comparison_operator rule? If you want the equivalent ofA <op> (B <op> C)then its quite easy:If you want something else, it becomes more complex.