homunculus
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "homunculus", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A lexer&parser by Javascript", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -1163,2 +1163,20 @@ var IParser = require('../Parser'); | ||
} | ||
else if(['[', '{'].indexOf(this.look.content()) != -1) { | ||
node.add(this.lexbind()); | ||
} | ||
else if(this.look.type() == Token.ID && ['get', 'set'].indexOf(this.look.content()) == -1) { | ||
//LL2区分新增语法classbody内赋值 | ||
for(var i = this.index; i < this.length; i++) { | ||
var next = this.tokens[i]; | ||
if(!S[next.type()]) { | ||
if(next.content() == '(') { | ||
node.add(this.method(noIn, noOf)); | ||
} | ||
else { | ||
node.add(this.lexbind()); | ||
} | ||
return node; | ||
} | ||
} | ||
} | ||
else { | ||
@@ -1165,0 +1183,0 @@ node.add(this.method(noIn, noOf)); |
@@ -1163,2 +1163,20 @@ define(function(require, exports, module) {var IParser = require('../Parser'); | ||
} | ||
else if(['[', '{'].indexOf(this.look.content()) != -1) { | ||
node.add(this.lexbind()); | ||
} | ||
else if(this.look.type() == Token.ID && ['get', 'set'].indexOf(this.look.content()) == -1) { | ||
//LL2区分新增语法classbody内赋值 | ||
for(var i = this.index; i < this.length; i++) { | ||
var next = this.tokens[i]; | ||
if(!S[next.type()]) { | ||
if(next.content() == '(') { | ||
node.add(this.method(noIn, noOf)); | ||
} | ||
else { | ||
node.add(this.lexbind()); | ||
} | ||
return node; | ||
} | ||
} | ||
} | ||
else { | ||
@@ -1165,0 +1183,0 @@ node.add(this.method(noIn, noOf)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
700527
19299