2 Commits e9e679d6e1 ... 6fba38b352

Author SHA1 Message Date
  Herby Vojčík 6fba38b352 Remove unused remnants. 1 month ago
  Herby Vojčík 84653027c8 Make parser compilable in Unix. 1 month ago
3 changed files with 4 additions and 8 deletions
  1. 2 2
      lang/base/parser.js
  2. 1 1
      lang/base/parser.pegjs
  3. 1 5
      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 - 5
lang/package.json

@@ -23,12 +23,8 @@
   "engines": {
     "node": ">=4.0.0"
   },
-  "strings": {
-    "buildParserBegin": "// jshint ignore:start\ndefine(['./boot'], function($boot) {\nvar $globals = $boot.globals;\n",
-    "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"