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

Fix for Issue # 20 #22

Closed

Conversation

ultrasuperpingu
Copy link

Fix for issue #20 (c# only for now)

The grammar provided in the issue is now correctly parsed. But the following grammar will not :

EOF -> @"^$";
[Skip] WHITESPACE -> @"\s+";
LIST -> "LIST";
END -> "END";
IDENTIFIER -> @"[a-zA-Z_][a-zA-Z0-9_]*";
Expr -> LIST IdList END;

IdList -> IDENTIFIER+;
Start -> (Expr)+ EOF;

But TinyPG is a LL(1) parser, not able to parse many grammars so it seems to me a good compromise (between the actual code and removing Partial Context Sensitive/Ambiguous Grammars feature).

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

Successfully merging this pull request may close these issues.

1 participant