Скачиваний:
0
Добавлен:
27.01.2022
Размер:
722 б
Скачать
## Usage grammar.pegjs

### Command (from project root) to generate parser [grammar.pegjs](https://github.com/surveyjs/surveyjs/tree/master/src/expressions/grammar.pegjs)
```
pegjs --plugin ./node_modules/ts-pegjs/src/tspegjs --extra-options-file src/expressions/pegconfig.json -o src/expressions/expressionParser.ts --cache src/expressions/grammar.pegjs
```

[pegconfig.json](https://github.com/surveyjs/surveyjs/tree/master/src/expressions/pegconfig.json) is necessary to use ```type-script``` plugin

```
node ./node_modules/pegjs/bin/pegjs --plugin ./node_modules/ts-pegjs/src/tspegjs --extra-options-file src/expressions/pegconfig.json -o src/expressions/expressionParser.ts --cache src/expressions/grammar.pegjs
```
Соседние файлы в папке expressions
  • #
    27.01.202276.4 Кб0expressionParser.ts
  • #
    27.01.202216.58 Кб0expressions.ts
  • #
    27.01.20224.29 Кб0grammar.pegjs
  • #
    27.01.2022657 б1pegconfig.json
  • #
    27.01.2022722 б0ReadMe.md