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

Implement ID/LP Parsing #146

Open
SamyaDaleh opened this issue Aug 10, 2018 · 0 comments
Open

Implement ID/LP Parsing #146

SamyaDaleh opened this issue Aug 10, 2018 · 0 comments
Labels
new feature functionality to be implemented

Comments

@SamyaDaleh
Copy link
Owner

SamyaDaleh commented Aug 10, 2018

G = <V_N, V_T, S R_ID, R_LP>
ID-Rule S -> a, b, c
with LP-Rule b < c
is equivalent to three CFG rules: S -> abc, S -> bca, S -> bac

Implementation is based in Earley, but any symbol after the dot can match the next input symbol. For nonterminals any next symbol can be expanded (that is permitted by all LP restrictions).

Another exmple:
S -> A, S, B
S -> A, B
A -> a, a
B -> b, b
A < B

S. M. Shieber interprets the right side of the dot as multi-set, E. G. Barton interprets both sides as multi-sets. Shieber keeps linearization visible while Barton generates less items. Maybe implement both.

@SamyaDaleh SamyaDaleh added the new feature functionality to be implemented label Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature functionality to be implemented
Projects
None yet
Development

No branches or pull requests

1 participant