We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
jsep("x && !y") generates the correct AST:
{ type: 'LogicalExpression', operator: '&&', left: { type: 'Identifier', name: 'x' }, right: { type: 'UnaryExpression', operator: '!', argument: { type: 'Identifier', name: 'y' }, prefix: true } }
If I add the new operators AND and NOT, the unitary operator is not correctly parsed
jsep.addBinaryOp("AND", 3); jsep.addUnaryOp('NOT', 1); jsep("x AND NOT y")
result in
{ type: 'Compound', body: [ { type: 'BinaryExpression', operator: 'AND', left: { type: 'Identifier', name: 'x' }, right: { type: 'Identifier', name: 'NOT' } }, { type: 'Identifier', name: 'y' } ] }
Is there a way to support this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
jsep("x && !y") generates the correct AST:
If I add the new operators AND and NOT, the unitary operator is not correctly parsed
result in
Is there a way to support this?
The text was updated successfully, but these errors were encountered: