1
0
Jelajahi Sumber

parser: generate parser with cache and position tracking

Manfred Kroehnert 12 tahun lalu
induk
melakukan
993c3ceb18
2 mengubah file dengan 358 tambahan dan 188 penghapusan
  1. 357 187
      js/parser.js
  2. 1 1
      st/Makefile

File diff ditekan karena terlalu besar
+ 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

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini