Skip to content

Commit

Permalink
Convert grammar.pegjs into grammar.pegcoffee
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Jul 8, 2014
1 parent 3c7bc52 commit cabb60a
Show file tree
Hide file tree
Showing 5 changed files with 4,140 additions and 3,749 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TEST = $(wildcard test/*.coffee | sort)
ROOT = $(shell pwd)

COFFEE = bin/coffee --js --bare
PEGJS = node_modules/.bin/pegjs --cache
PEGJS = node_modules/.bin/pegjs --cache --plugin pegjs-coffee-plugin
MOCHA = node_modules/.bin/mocha --compilers coffee:./register -u tdd
CJSIFY = node_modules/.bin/cjsify --export CoffeeScript
MINIFIER = node_modules/.bin/esmangle
Expand All @@ -30,9 +30,9 @@ lib/bootstrap: lib
mkdir -p lib/bootstrap


lib/parser.js: src/grammar.pegjs bootstraps lib
lib/parser.js: src/grammar.pegcoffee bootstraps lib
$(PEGJS) <"$<" >"$@.tmp" && mv "$@.tmp" "$@"
lib/bootstrap/parser.js: src/grammar.pegjs lib/bootstrap
lib/bootstrap/parser.js: src/grammar.pegcoffee lib/bootstrap
$(PEGJS) <"$<" >"$@"
lib/bootstrap/%.js: src/%.coffee lib/bootstrap
$(COFFEE) -i "$<" >"$@"
Expand Down
Loading

0 comments on commit cabb60a

Please sign in to comment.