UNPKG

@ts-jison/ebnf-parser

Version:

A parser for BNF and EBNF grammars used by jison

21 lines (13 loc) 441 B
JISON ?= ../parser-generator/lib/cli.js all: build test build: lib/bnf-parser.js lib/ebnf-parser.js test: node tests/all-tests.js src/bnf-parser.ts: src/bnf.jison node $(JISON) -t typescript -n Bnf -o $@ $< lib/bnf-parser.js: src/bnf-parser.ts npx tsc -p tsconfig.package.json src/ebnf-parser.ts: src/ebnf.jison node $(JISON) -t typescript -n Ebnf -o $@ $< lib/ebnf-parser.js: src/ebnf-parser.ts npx tsc -p tsconfig.package.json