Browse Source

Regenerate parser

master
Futago-za Ryuu 4 years ago
parent
commit
b81396a904
  1. 3
      lib/parser.js
  2. 2
      src/parser.pegjs
  3. 1
      src/pegjs.config.js

3
lib/parser.js

@ -5,7 +5,6 @@
"use strict";
var ast = require("./ast");
var js = require("./compiler/js");
var util = require("./util");
function peg$subclass(child, parent) {
@ -3306,7 +3305,7 @@ function peg$parse(input, options) {
"!": "semantic_not"
};
let RESERVED_WORDS = options.reservedWords || js.reservedWords;
let RESERVED_WORDS = options.reservedWords || util.reservedWords;
if ( !Array.isArray(RESERVED_WORDS) ) RESERVED_WORDS = [];
function extractOptional(optional, index) {

2
src/parser.pegjs

@ -39,7 +39,7 @@
"!": "semantic_not"
};
let RESERVED_WORDS = options.reservedWords || js.reservedWords;
let RESERVED_WORDS = options.reservedWords || util.reservedWords;
if ( !Array.isArray(RESERVED_WORDS) ) RESERVED_WORDS = [];
function extractOptional(optional, index) {

1
src/pegjs.config.js

@ -7,7 +7,6 @@ module.exports = {
dependencies: {
ast: "./ast",
js: "./compiler/js",
util: "./util"
},

Loading…
Cancel
Save