Browse Source

parser: generate parser with cache and position tracking

Manfred Kroehnert 12 years ago
parent
commit
993c3ceb18
2 changed files with 358 additions and 188 deletions
  1. 357 187
      js/parser.js
  2. 1 1
      st/Makefile

File diff suppressed because it is too large
+ 357 - 187
js/parser.js


+ 1 - 1
st/Makefile

@@ -30,7 +30,7 @@ boot.js init.js:
 # $@ is the target
 # $< is the prerequisite
 parser.js: ../js/parser.pegjs
-	pegjs -e smalltalk.parser $< $@
+	pegjs --track-line-and-column --cache -e smalltalk.parser $< $@
 
 # Then we compile Kernel-*.st files depending on having boot.js, init.js and parser.js
 # $< means the first dependency - in other words Kernel-*.st

Some files were not shown because too many files changed in this diff