Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow backtracking for function calls without parentheses #24

Open
Addisonbean opened this issue Sep 22, 2017 · 1 comment
Open

Allow backtracking for function calls without parentheses #24

Addisonbean opened this issue Sep 22, 2017 · 1 comment

Comments

@Addisonbean
Copy link

Addisonbean commented Sep 22, 2017

I am working on a language using Plex, and would like to remove parentheses from function calls. From what I can tell according to this question, doing this would require "backtracing", to allow patterns like this in the parser: Ident(i) exp_list[e] { if ($1 is not defined) { back_and_choose_another_rule(); } }. Would it be possible to add this, or is there better way to do this that Plex is capable of?

P.s. — I'm new to using parsers so I may have no idea what I'm actually talking about. Sorry if this doesn't make sense!

@goffrie
Copy link
Owner

goffrie commented Sep 28, 2017

Sorry, I don't think this would be very easy to add to plex. It's really not designed for non-LALR(1) grammars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants