Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added Semicolons #117

Merged
merged 1 commit into from

2 participants

@Niggler

Added semicolons in a few places

@Niggler Niggler Missing Semicolons
Added semicolons in a few places
9b75319
@zaach zaach merged commit 992ae73 into zaach:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 25, 2012
  1. @Niggler

    Missing Semicolons

    Niggler authored
    Added semicolons in a few places
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/jison.js
  2. +2 −2 lib/jison/lexer.js
View
4 lib/jison.js
@@ -921,8 +921,8 @@ lrGeneratorMixin.generateCommonJSModule = function generateCommonJSModule (opt)
+ "\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {"
+ "\nexports.parser = "+moduleName+";"
+ "\nexports.Parser = "+moduleName+".Parser;"
- + "\nexports.parse = function () { return "+moduleName+".parse.apply("+moduleName+", arguments); }"
- + "\nexports.main = "+ String(opt.moduleMain || commonjsMain)
+ + "\nexports.parse = function () { return "+moduleName+".parse.apply("+moduleName+", arguments); };"
+ + "\nexports.main = "+ String(opt.moduleMain || commonjsMain) + ";"
+ "\nif (typeof module !== 'undefined' && require.main === module) {\n"
+ " exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require(\"system\").args);\n}"
+ "\n}"
View
4 lib/jison/lexer.js
@@ -95,7 +95,7 @@ function prepareStartConditions (conditions) {
}
function buildActions (dict, tokens) {
- var actions = [dict.actionInclude || '', "var YYSTATE=YY_START"];
+ var actions = [dict.actionInclude || '', "var YYSTATE=YY_START;"];
var tok;
var toks = {};
@@ -344,7 +344,7 @@ RegExpLexer.prototype = {
out += ";\nlexer.rules = [" + this.rules + "]";
out += ";\nlexer.conditions = " + JSON.stringify(this.conditions);
if (this.moduleInclude) out += ";\n"+this.moduleInclude;
- out += ";\nreturn lexer;})()";
+ out += ";\nreturn lexer;})();";
return out;
},
generateCommonJSModule: function generateCommonJSModule(opt) {
Something went wrong with that request. Please try again.