Lrama is LALR (1) parser generator written by Ruby. The first goal of this project is providing error tolerant parser for CRuby with minimal changes on CRuby parse.y file.
- Bison style grammar file is supported with some assumptions
- b4_locations_if is always true
- b4_pure_if is always true
- b4_pull_if is always false
- b4_lac_if is always false
- Error Tolerance parser
- Subset of Repairing Syntax Errors in LR Parsers (Corchuelo et al.) algorithm is supported
$ gem install lrama
From source codes,
$ bundle exec rake install
$ lrama --version
0.1.0
# "y.tab.c" and "y.tab.h" are generated
$ lrama -d sample/parse.y
- Install Lrama
- Run
make YACC=lrama
See LEGAL.md file.