Lezer Playground

This is a playground for the Lezer parser generator.

Parser okay.

Grammar:

@top Program { expression }

expression { Name | Number | BinaryExpression }

BinaryExpression { "(" expression ("+" | "-") expression ")" }

@tokens {
Name { @asciiLetter+ }
Number { @digit+ }
}

Sample Input:


Syntax Tree:

Program ()
⚠ ()