@ -303,7 +303,7 @@ PEG.compiler.emitter = function(ast, options) {
' parse: function(input, startRule) {',
' var parseFunctions = {',
' #for rule in node.rules',
' #{string(rule.name) + ": parse_" + rule.name},',
' #{string(rule.name) + ": parse_" + rule.name + (rule !== node.rules[node.rules.length - 1] ? "," : "")}',
' #end',
' };',
' ',
@ -92,7 +92,7 @@ PEG.parser = (function(){
"multiLineComment": parse_multiLineComment,
"eol": parse_eol,
"eolChar": parse_eolChar,
"whitespace": parse_whitespace,
"whitespace": parse_whitespace
};
if (startRule !== undefined) {