@ -33,62 +33,62 @@ PEG.parser = (function(){
* /
parse : function ( input , startRule ) {
var parseFunctions = {
"__" : parse _ _ _ ,
"action" : parse _action ,
"and" : parse _and ,
"braced" : parse _braced ,
"bracketDelimitedCharacter" : parse _bracketDelimitedCharacter ,
"choice" : parse _choice ,
"class" : parse _class ,
"classCharacter" : parse _classCharacter ,
"classCharacterRange" : parse _classCharacterRange ,
"colon" : parse _colon ,
"comment" : parse _comment ,
"digit" : parse _digit ,
"dot" : parse _dot ,
"doubleQuotedCharacter" : parse _doubleQuotedCharacter ,
"doubleQuotedString" : parse _doubleQuotedString ,
"eol" : parse _eol ,
"eolChar" : parse _eolChar ,
"eolEscapeSequence" : parse _eolEscapeSequence ,
"equals" : parse _equals ,
"grammar" : parse _grammar ,
"hexDigit" : parse _hexDigit ,
"hexEscapeSequence" : parse _hexEscapeSequence ,
"identifier" : parse _identifier ,
"initializer" : parse _initializer ,
"rule" : parse _rule ,
"choice" : parse _choice ,
"sequence" : parse _sequence ,
"labeled" : parse _labeled ,
"letter" : parse _letter ,
"literal" : parse _literal ,
"lowerCaseLetter" : parse _lowerCaseLetter ,
"lparen" : parse _lparen ,
"multiLineComment" : parse _multiLineComment ,
"nonBraceCharacter" : parse _nonBraceCharacter ,
"nonBraceCharacters" : parse _nonBraceCharacters ,
"not" : parse _not ,
"plus" : parse _plus ,
"prefixed" : parse _prefixed ,
"suffixed" : parse _suffixed ,
"primary" : parse _primary ,
"question" : parse _question ,
"rparen" : parse _rparen ,
"rule" : parse _rule ,
"action" : parse _action ,
"braced" : parse _braced ,
"nonBraceCharacters" : parse _nonBraceCharacters ,
"nonBraceCharacter" : parse _nonBraceCharacter ,
"equals" : parse _equals ,
"colon" : parse _colon ,
"semicolon" : parse _semicolon ,
"sequence" : parse _sequence ,
"simpleBracketDelimitedCharacter" : parse _simpleBracketDelimitedCharacter ,
"simpleDoubleQuotedCharacter" : parse _simpleDoubleQuotedCharacter ,
"simpleEscapeSequence" : parse _simpleEscapeSequence ,
"simpleSingleQuotedCharacter" : parse _simpleSingleQuotedCharacter ,
"singleLineComment" : parse _singleLineComment ,
"singleQuotedCharacter" : parse _singleQuotedCharacter ,
"singleQuotedString" : parse _singleQuotedString ,
"slash" : parse _slash ,
"and" : parse _and ,
"not" : parse _not ,
"question" : parse _question ,
"star" : parse _star ,
"plus" : parse _plus ,
"lparen" : parse _lparen ,
"rparen" : parse _rparen ,
"dot" : parse _dot ,
"identifier" : parse _identifier ,
"literal" : parse _literal ,
"string" : parse _string ,
"suffixed" : parse _suffixed ,
"doubleQuotedString" : parse _doubleQuotedString ,
"doubleQuotedCharacter" : parse _doubleQuotedCharacter ,
"simpleDoubleQuotedCharacter" : parse _simpleDoubleQuotedCharacter ,
"singleQuotedString" : parse _singleQuotedString ,
"singleQuotedCharacter" : parse _singleQuotedCharacter ,
"simpleSingleQuotedCharacter" : parse _simpleSingleQuotedCharacter ,
"class" : parse _class ,
"classCharacterRange" : parse _classCharacterRange ,
"classCharacter" : parse _classCharacter ,
"bracketDelimitedCharacter" : parse _bracketDelimitedCharacter ,
"simpleBracketDelimitedCharacter" : parse _simpleBracketDelimitedCharacter ,
"simpleEscapeSequence" : parse _simpleEscapeSequence ,
"zeroEscapeSequence" : parse _zeroEscapeSequence ,
"hexEscapeSequence" : parse _hexEscapeSequence ,
"unicodeEscapeSequence" : parse _unicodeEscapeSequence ,
"eolEscapeSequence" : parse _eolEscapeSequence ,
"digit" : parse _digit ,
"hexDigit" : parse _hexDigit ,
"letter" : parse _letter ,
"lowerCaseLetter" : parse _lowerCaseLetter ,
"upperCaseLetter" : parse _upperCaseLetter ,
"__" : parse _ _ _ ,
"comment" : parse _comment ,
"singleLineComment" : parse _singleLineComment ,
"multiLineComment" : parse _multiLineComment ,
"eol" : parse _eol ,
"eolChar" : parse _eolChar ,
"whitespace" : parse _whitespace ,
"zeroEscapeSequence" : parse _zeroEscapeSequence
} ;
if ( startRule !== undefined ) {
@ -189,13 +189,10 @@ PEG.parser = (function(){
}
if ( result0 !== null ) {
result0 = ( function ( initializer , rules ) {
var rulesConverted = { } ;
each ( rules , function ( rule ) { rulesConverted [ rule . name ] = rule ; } ) ;
return {
type : "grammar" ,
initializer : initializer !== "" ? initializer : null ,
rules : rules Converted ,
rules : rules ,
startRule : rules [ 0 ] . name
} ;
} ) ( result0 [ 1 ] , result0 [ 2 ] ) ;