swap children of a parent

15 views
Skip to first unread message

nirmala

unread,
Apr 25, 2018, 12:55:23 AM4/25/18
to antlr-discussion

I have a rule like below

  parent_clause: first_clause second_clause
         | second_clause first_clause
         ;

how can I interchange the children so that I can always have first_clause followed by second_clause?

Reply all
Reply to author
Forward
0 new messages