UNPKG

logica

Version:

a compile-to-javascript predicate logic language

21 lines (16 loc) 539 B
.PHONY: test # this target does not refer to the folder # target: parser - Default target. Builds the JavaScript parser from logica.jison parser: node_modules/jison node node_modules/jison/lib/jison/cli-wrapper.js -m js < logica.jison > lib/parser.js cat lib/parserFooter.js >> lib/parser.js @echo built to lib/parser.js # target: help - Display callable targets. help: egrep "^# target:" Makefile # target: test - Run unit tests test: node_modules/mocha npm test node_modules/jison: npm install node_modules/mocha: npm install