File: regen-lexer

package info (click to toggle)
golang-github-alecthomas-participle-v2 2.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 920 kB
  • sloc: javascript: 1,164; sh: 41; makefile: 7
file content (5 lines) | stat: -rwxr-xr-x 199 bytes parent folder | download
1
2
3
4
5
#!/bin/bash
set -euo pipefail
path=$(dirname "${0}")
base="${path}/../lexer/internal/basiclexer"
"${path}/participle" gen lexer --name GeneratedBasic internal < "${base}.json" | gofmt > "${base}.go"