nearley icon indicating copy to clipboard operation
nearley copied to clipboard

feat: add `--include-paths` support in nearleyc

Open hikerpig opened this issue 2 years ago • 0 comments

related #604

example:

@preprocessor typescript
@lexer lexer

@builtin "postprocessors.ne"

# from shared-grammars
@include "whitespace.ne"
@include "config.ne"
@include "comment.ne"
shared-grammars
├── comment.ne
├── config.d.ts
├── config.ne
└── whitespace.ne
src
└── gantt
nearleyc src/gantt/parser/gantt.ne --include-paths ./shared-grammars  -o src/gantt/parser/gantt.ts

hikerpig avatar May 21 '22 11:05 hikerpig