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

Priority rules not detected in the simplification #1

Open
maveme opened this issue Jul 20, 2020 · 0 comments
Open

Priority rules not detected in the simplification #1

maveme opened this issue Jul 20, 2020 · 0 comments

Comments

@maveme
Copy link
Collaborator

maveme commented Jul 20, 2020

The following productions are not recognized in the simplification because they do not have .symbols, instead they have .choices

`

not: "!" Expr
left (
mul: Expr "*" Expr
| div: Expr "/" Expr
)
left (
add: Expr "+" Expr
| sub: Expr "-" Expr
)
non-assoc (
lt: Expr "<" Expr
| leq: Expr "<=" Expr
| gt: Expr ">" Expr
| geq: Expr ">=" Expr
| eq: Expr "==" Expr
| neq: Expr "!=" Expr
)
left and: Expr "&&" Expr
left or: Expr "||" Expr`

The code that fails is this:
Module: kogi::simplification::RemoveUnitProduction

Production filterAlternative(Production p) {
p.symbols = filterLayoutSymbols(p.symbols);
return p;
} `

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

1 participant