From the previous issue (#9), I've discovered that we cannot use the same startingState to parse a method in Java if the method is written in an Interface or in a Class
I think I understand why the parser cannot do that (the grammar is different in an interface and in a class).
So, what do you think we should do in such a case?
Using parse:startingAt:onError?
And give to onError the block that will execute the parsing with another startingPoint?
If yes, I will propose a pull request to add interface_member_declaration as a startingPoint (or maybe we can specify a startingPoint without adding it at the begin of the "parser generator").
If no, I'm interesting about the solution 😃
Hello (sorry it's again me 😬 ),
From the previous issue (#9), I've discovered that we cannot use the same startingState to parse a method in Java if the method is written in an Interface or in a Class
ex doesn't work:
I think I understand why the parser cannot do that (the grammar is different in an interface and in a class).
So, what do you think we should do in such a case? Using
parse:startingAt:onError
? And give to onError the block that will execute the parsing with another startingPoint?If yes, I will propose a pull request to add interface_member_declaration as a startingPoint (or maybe we can specify a startingPoint without adding it at the begin of the "parser generator"). If no, I'm interesting about the solution 😃