Skip to content

Commit

Permalink
Merge pull request #321 from lydell/pegcoffee
Browse files Browse the repository at this point in the history
Convert grammar.pegjs into grammar.pegcoffee
  • Loading branch information
lydell committed Aug 23, 2014
2 parents f199a7f + dc031d6 commit a40829b
Show file tree
Hide file tree
Showing 6 changed files with 4,494 additions and 3,212 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 ./lib/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 lib/pegjs-coffee-plugin.js
$(PEGJS) <"$<" >"$@.tmp" && mv "$@.tmp" "$@"
lib/bootstrap/parser.js: src/grammar.pegjs lib/bootstrap
lib/bootstrap/parser.js: src/grammar.pegcoffee lib/bootstrap lib/pegjs-coffee-plugin.js
$(PEGJS) <"$<" >"$@"
lib/bootstrap/%.js: src/%.coffee lib/bootstrap
$(COFFEE) -i "$<" >"$@"
Expand Down
Loading

0 comments on commit a40829b

Please sign in to comment.