homunculus
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "homunculus", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "A lexer&parser by Javascript", | ||
@@ -13,4 +13,5 @@ "maintainers": [ | ||
"test": "make test", | ||
"build": "gulp build", | ||
"watch": "gulp watch" | ||
"build": "gulp", | ||
"watch": "gulp watch", | ||
"pack": "rollup -c rollup.config.js" | ||
}, | ||
@@ -74,2 +75,6 @@ "config": { | ||
"mocha-lcov-reporter": "^0.0.2", | ||
"rollup": "^1.21.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-uglify": "^6.0.3", | ||
"through2": "^0.6.1", | ||
@@ -76,0 +81,0 @@ "unicode-7.0.0": "^0.1.5" |
var Lexer = require('./lexer/Lexer'); | ||
var Rule = require('./lexer/rule/Rule'); | ||
var CssLexer = require('./lexer/CssLexer'); | ||
@@ -73,3 +74,3 @@ var HtmlLexer = require('./lexer/HtmlLexer'); | ||
default: | ||
throw new Error('Unsupport Language Lexer: ' + lan); | ||
return Lexer; | ||
} | ||
@@ -191,4 +192,6 @@ break; | ||
return EcmascriptRule; | ||
case 'java': | ||
return JavaRule; | ||
default: | ||
throw new Error('Unsupport Language Context: ' + lan); | ||
return Rule; | ||
} | ||
@@ -195,0 +198,0 @@ case 'walk': |
define(function(require, exports, module) {var Lexer = require('./lexer/Lexer'); | ||
var Rule = require('./lexer/rule/Rule'); | ||
var CssLexer = require('./lexer/CssLexer'); | ||
@@ -73,3 +74,3 @@ var HtmlLexer = require('./lexer/HtmlLexer'); | ||
default: | ||
throw new Error('Unsupport Language Lexer: ' + lan); | ||
return Lexer; | ||
} | ||
@@ -191,4 +192,6 @@ break; | ||
return EcmascriptRule; | ||
case 'java': | ||
return JavaRule; | ||
default: | ||
throw new Error('Unsupport Language Context: ' + lan); | ||
return Rule; | ||
} | ||
@@ -195,0 +198,0 @@ case 'walk': |
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
1895296
112
33878
14