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

Constraint expressions are not being parsed correctly #60

Open
vinicius0197 opened this issue Nov 28, 2020 · 0 comments
Open

Constraint expressions are not being parsed correctly #60

vinicius0197 opened this issue Nov 28, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@vinicius0197
Copy link
Contributor

We've introduced some changes to the grammar on the code-gen branch. Those changes were needed to simplify the implementation of the code-writer, but it seems like some of those changes broke the parser for some constraint expressions.

These expressions, for instance, throws a parser error:

part(1, "/", transformation) in {"CBC", "PCBC", "CTR", "CTS", "CFB", "OFB"} && encmode != 1 => noCallTo[IWOIV] ;
length[pre_plaintext] >= pre_plain_off + len;

The differences between the old and new grammar for constraints are:

// old (used to work for expressions above)
ConstraintExp : BooleanExp; 
BooleanExp : exp = ImpliesExp;

// new (broken)
ConstraintExp : ImpliesExp;
@vinicius0197 vinicius0197 added the bug Something isn't working label Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant