Browse Source

- helper script added to visualize PEG grammar more easily

tags/v0.3.0
Andreas Romeyke 2 years ago
parent
commit
fc26a54df2
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      common/peg2pegjs.pl

+ 3
- 0
common/peg2pegjs.pl View File

@@ -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