re2-js-generator/README.md

35 lines
443 B
Markdown
Raw Normal View History

2019-01-24 13:50:55 +00:00
# re2-js-generator
2019-01-29 10:06:27 +00:00
## Install
You need install npm and node v.10;
2019-01-24 15:21:44 +00:00
2019-01-29 10:06:27 +00:00
```bash
2019-01-24 15:36:19 +00:00
npm install
2019-01-29 10:06:27 +00:00
```
2019-01-24 15:20:50 +00:00
2019-01-29 10:06:27 +00:00
## Start
```bash
node main.js -o=<output_path> -t=<web|node> <-nb|--no-beautify>
```
2019-01-24 15:20:50 +00:00
or
2019-01-29 10:06:27 +00:00
```bash
./run.sh
```
Result fill write in <lexer.js> file.
2019-01-29 10:06:27 +00:00
## Flags
```bash
-o=<output_path>
-t=<web|node>
-nb|--no-beautify
```
## Test
```bash
node test.js
```
2019-01-24 15:20:50 +00:00
2019-01-29 10:06:27 +00:00
## Manual
Read re2c manual: http://re2c.org/manual/manual.html
2019-01-24 15:20:50 +00:00
Report for bugs: rolahd@yandex.ru