Browse Source

Make parser compilable in Unix.

Herby Vojčík 5 years ago
parent
commit
84653027c8
3 changed files with 4 additions and 4 deletions
  1. 2 2
      lang/base/parser.js
  2. 1 1
      lang/base/parser.pegjs
  3. 1 1
      lang/package.json

+ 2 - 2
lang/base/parser.js

@@ -3,7 +3,7 @@
  *
  * http://pegjs.org/
  */
-define(["./boot"], function($boot) {
+define(["./boot"], function(__boot) {
   "use strict";
 
   function peg$subclass(child, parent) {
@@ -4059,7 +4059,7 @@ define(["./boot"], function($boot) {
     }
 
 
-    	var $globals = $boot.globals;
+    	var $globals = __boot.globals;
 
     	function newNode(nodeClass) {
     		return nodeClass._new()._location_(location())._source_(text());

+ 1 - 1
lang/base/parser.pegjs

@@ -1,5 +1,5 @@
 {
-	var $globals = $boot.globals;
+	var $globals = __boot.globals;
 
 	function newNode(nodeClass) {
 		return nodeClass._new()._location_(location())._source_(text());

+ 1 - 1
lang/package.json

@@ -28,7 +28,7 @@
     "buildParserEnd": "});"
   },
   "scripts": {
-    "build:parser": "pegjs --cache -o base/parser.js --format amd --dependency $boot:./boot base/parser.pegjs"
+    "build:parser": "pegjs --cache -o base/parser.js --format amd --dependency __boot:./boot base/parser.pegjs"
   },
   "devDependencies": {
     "pegjs": "^0.10.0"