Pegasus is a grammar language created in 2018 by Daniel Fedorin.
#1869on PLDB | 6Years Old |
git clone https://github.com/DanilaFe/pegasus
A parser generator for C and Crystal.
token space = / +/ [ skip ];
token digit = /[0-9]/;
token list_start = /\[/;
token list_end = /\]/;
token comma = /,/;
rule list = list_start list_recursive list_end;
rule list_recursive = digit | digit comma list_recursive;