Instaparse playground
Instaparse
compiled to JavaScript (ESM).
Github repo
1
2
3
4
5
6
EXP
=
E
<
E
> = <
"("
>
E
<
")"
> /
mul
/ (
add
|
sub
) /
num
mul
=
E
<
"*"
>
E
add
=
E
<
"+"
>
E
sub
=
E
<
"-"
>
E
num
= #
"\d+"
Text
1+2*3+4
Show ranges
Show all trees
SPPF
Shared Packed Parse Forest
Highlight tree
Download SVG
Error