ruby / lrama

Pure Ruby LALR parser generator
190 stars 26 forks source link

Add support `-v`, `--verbose` option #457

Closed ydah closed 2 months ago

ydah commented 2 months ago

Add support for -v and --vervose options. These options align with Bison behavior.

❯ bison --help      
Usage: bison [OPTION]... FILE
Generate a deterministic LR or generalized LR (GLR) parser employing
LALR(1), IELR(1), or canonical LR(1) parser tables.
: (snip)
Output Files:
  -H, --header=[FILE]           also produce a header file
  -d                            likewise but cannot specify FILE (for POSIX Yacc)
  -r, --report=THINGS           also produce details on the automaton
      --report-file=FILE        write report to FILE
  -v, --verbose                 same as '--report=state'