2019-01-24 13:50:55 +00:00
|
|
|
# re2-js-generator
|
|
|
|
|
2019-01-29 10:14:23 +00:00
|
|
|
## Requires
|
|
|
|
- node
|
|
|
|
- npm
|
|
|
|
- re2c
|
|
|
|
|
2019-01-29 10:06:27 +00:00
|
|
|
## Install
|
|
|
|
```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
|
|
|
|
```
|
2019-01-25 11:25:21 +00:00
|
|
|
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
|