mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-09 01:30:49 -07:00
The new parser is generated by Jison (a JS parser generator, like Bison). -- Modified one of the Jison samples to support our "leniency" requirement. -- Added a makefile to build & minify the parser. -- The new parser also generates better error messages... but they expect to be displayed in a console. So I changed the error alert DIV to use a fixed-width font.
8 lines
No EOL
121 B
Makefile
8 lines
No EOL
121 B
Makefile
all: js/jsonl.min.js
|
|
|
|
%.min.js : %.js
|
|
uglifyjs "$^" > "$@"
|
|
js/%.js : %.grammar.js
|
|
node "$^" > "$@"
|
|
|
|
.PRECIOUS : js/%.js |