homunculus
Advanced tools
Comparing version 1.3.4 to 1.4.0
{ | ||
"name": "homunculus", | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"description": "A lexer&parser by Javascript", | ||
@@ -47,3 +47,4 @@ "maintainers": [ | ||
"es6", | ||
"jsx" | ||
"jsx", | ||
"csx" | ||
], | ||
@@ -50,0 +51,0 @@ "author": "army8735", |
@@ -6,2 +6,3 @@ var Lexer = require('./lexer/Lexer'); | ||
var JSXLexer = require('./lexer/JSXLexer'); | ||
var CSXLexer = require('./lexer/CSXLexer'); | ||
@@ -18,2 +19,3 @@ var EcmascriptRule = require('./lexer/rule/EcmascriptRule'); | ||
var JSXToken = require('./lexer/JSXToken'); | ||
var CSXToken = require('./lexer/CSXToken'); | ||
@@ -25,2 +27,3 @@ var JsParser = require('./parser/js/Parser'); | ||
var JSXParser = require('./parser/jsx/Parser'); | ||
var CSXParser = require('./parser/csx/Parser'); | ||
@@ -32,2 +35,3 @@ var JsNode = require('./parser/js/Node'); | ||
var JSXNode = require('./parser/jsx/Node'); | ||
var CSXNode = require('./parser/csx/Node'); | ||
@@ -63,2 +67,4 @@ var JsContext = require('./parser/js/Context'); | ||
return JSXLexer; | ||
case 'csx': | ||
return CSXLexer; | ||
default: | ||
@@ -88,2 +94,4 @@ throw new Error('Unsupport Language Lexer: ' + lan); | ||
return JSXParser; | ||
case 'csx': | ||
return CSXParser; | ||
default: | ||
@@ -114,2 +122,4 @@ throw new Error('Unsupport Language Parser: ' + lan); | ||
return JSXNode; | ||
case 'csx': | ||
return CSXNode; | ||
default: | ||
@@ -145,2 +155,4 @@ throw new Error('Unsupport Language Node: ' + lan); | ||
return JSXToken; | ||
case 'csx': | ||
return CSXToken; | ||
default: | ||
@@ -169,2 +181,4 @@ return Token; | ||
return EcmascriptRule; | ||
case 'csx': | ||
return EcmascriptRule; | ||
default: | ||
@@ -210,2 +224,4 @@ throw new Error('Unsupport Language Context: ' + lan); | ||
return new JSXLexer(new EcmascriptRule()); | ||
case 'csx': | ||
return new CSXLexer(new EcmascriptRule()); | ||
default: | ||
@@ -238,2 +254,4 @@ throw new Error('Unsupport Language Lexer: ' + lan); | ||
return new JSXParser(exports.getLexer(lan)); | ||
case 'csx': | ||
return new CSXParser(exports.getLexer(lan)); | ||
default: | ||
@@ -240,0 +258,0 @@ throw new Error('Unsupport Language Parser: ' + lan); |
@@ -6,2 +6,3 @@ define(function(require, exports, module) {var Lexer = require('./lexer/Lexer'); | ||
var JSXLexer = require('./lexer/JSXLexer'); | ||
var CSXLexer = require('./lexer/CSXLexer'); | ||
@@ -18,2 +19,3 @@ var EcmascriptRule = require('./lexer/rule/EcmascriptRule'); | ||
var JSXToken = require('./lexer/JSXToken'); | ||
var CSXToken = require('./lexer/CSXToken'); | ||
@@ -25,2 +27,3 @@ var JsParser = require('./parser/js/Parser'); | ||
var JSXParser = require('./parser/jsx/Parser'); | ||
var CSXParser = require('./parser/csx/Parser'); | ||
@@ -32,2 +35,3 @@ var JsNode = require('./parser/js/Node'); | ||
var JSXNode = require('./parser/jsx/Node'); | ||
var CSXNode = require('./parser/csx/Node'); | ||
@@ -63,2 +67,4 @@ var JsContext = require('./parser/js/Context'); | ||
return JSXLexer; | ||
case 'csx': | ||
return CSXLexer; | ||
default: | ||
@@ -88,2 +94,4 @@ throw new Error('Unsupport Language Lexer: ' + lan); | ||
return JSXParser; | ||
case 'csx': | ||
return CSXParser; | ||
default: | ||
@@ -114,2 +122,4 @@ throw new Error('Unsupport Language Parser: ' + lan); | ||
return JSXNode; | ||
case 'csx': | ||
return CSXNode; | ||
default: | ||
@@ -145,2 +155,4 @@ throw new Error('Unsupport Language Node: ' + lan); | ||
return JSXToken; | ||
case 'csx': | ||
return CSXToken; | ||
default: | ||
@@ -169,2 +181,4 @@ return Token; | ||
return EcmascriptRule; | ||
case 'csx': | ||
return EcmascriptRule; | ||
default: | ||
@@ -210,2 +224,4 @@ throw new Error('Unsupport Language Context: ' + lan); | ||
return new JSXLexer(new EcmascriptRule()); | ||
case 'csx': | ||
return new CSXLexer(new EcmascriptRule()); | ||
default: | ||
@@ -238,2 +254,4 @@ throw new Error('Unsupport Language Lexer: ' + lan); | ||
return new JSXParser(exports.getLexer(lan)); | ||
case 'csx': | ||
return new CSXParser(exports.getLexer(lan)); | ||
default: | ||
@@ -240,0 +258,0 @@ throw new Error('Unsupport Language Parser: ' + lan); |
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
743605
98
21555