Browse Source

- helper script added to visualize PEG grammar more easily

pull/6/head
Andreas Romeyke 4 years ago
parent
commit
fc26a54df2
  1. 3
      common/peg2pegjs.pl

3
common/peg2pegjs.pl

@ -0,0 +1,3 @@
#!/bin/bash
# converts a PEG grammar in a PEG.js grammar
fgrep -v "set_parse_error" | sed -e "s/^#.*//g" -e "s/<-/=/g" -e "s/[<>]//g" -e "s/[\t ]#//g"
Loading…
Cancel
Save