example | ||
build_example.sh | ||
lexer.l | ||
LICENSE | ||
main.js | ||
package.json | ||
README.md | ||
run.sh | ||
test.js |
re2-js-generator
Requires
- node
- npm
- re2c
Install
git clone -- http://git.macaw.me:3000/chichenkov/re2-js-generator.git
npm install
One Minute Guide
You can fast use example:
npm install
./build_example.sh
cd examples/
node lexme.js
Start
node main.js -inp=<input_file> -o=<output_path> -t=<web|node> <-nb|--no-beautify> <-logs>
or
./run.sh
Result fill write in <lexer.js> file.
Flags
-inp=<input_file.l>
-o=<output_path>
-t=<web|node>
-nb|--no-beautify
-logs
Test
node test.js
Manual
Read re2c manual: http://re2c.org/manual/manual.html
Report for bugs: rolahd@yandex.ru