@ -335,7 +335,7 @@ module.exports = (function() {
peg$c239 = { type : "literal" , value : ";" , description : "\";\"" } ,
peg$currPos = 0 ,
peg$ reportedPos = 0 ,
peg$ savedPos = 0 ,
peg$cachedPos = 0 ,
peg$cachedPosDetails = { line : 1 , column : 1 , seenCR : false } ,
peg$maxFailPos = 0 ,
@ -353,18 +353,18 @@ module.exports = (function() {
}
function text ( ) {
return input . substring ( peg$ report edPos, peg$currPos ) ;
return input . substring ( peg$ sav edPos, peg$currPos ) ;
}
function location ( ) {
var reportedPosDetails = peg$computePosDetails ( peg$report edPos) ,
currPosDetails = peg$computePosDetails ( peg$currPos ) ;
var savedPosDetails = peg$computePosDetails ( peg$sav edPos) ,
currPosDetails = peg$computePosDetails ( peg$currPos ) ;
return {
start : {
offset : peg$ report edPos,
line : report edPosDetails. line ,
column : report edPosDetails. column
offset : peg$ sav edPos,
line : sav edPosDetails. line ,
column : sav edPosDetails. column
} ,
end : {
offset : peg$currPos ,
@ -378,12 +378,12 @@ module.exports = (function() {
throw peg$buildException (
null ,
[ { type : "other" , description : description } ] ,
peg$ report edPos
peg$ sav edPos
) ;
}
function error ( message ) {
throw peg$buildException ( message , null , peg$ report edPos) ;
throw peg$buildException ( message , null , peg$ sav edPos) ;
}
function peg$computePosDetails ( pos ) {
@ -574,7 +574,7 @@ module.exports = (function() {
s3 = peg$FAILED ;
}
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c0 ( s2 , s3 ) ;
s0 = s1 ;
} else {
@ -601,7 +601,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseEOS ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c1 ( s1 ) ;
s0 = s1 ;
} else {
@ -657,7 +657,7 @@ module.exports = (function() {
if ( s6 !== peg$FAILED ) {
s7 = peg$parseEOS ( ) ;
if ( s7 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c4 ( s1 , s3 , s6 ) ;
s0 = s1 ;
} else {
@ -769,7 +769,7 @@ module.exports = (function() {
}
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c7 ( s1 , s2 ) ;
s0 = s1 ;
} else {
@ -809,7 +809,7 @@ module.exports = (function() {
s2 = null ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c8 ( s1 , s2 ) ;
s0 = s1 ;
} else {
@ -865,7 +865,7 @@ module.exports = (function() {
}
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c9 ( s1 , s2 ) ;
s0 = s1 ;
} else {
@ -900,7 +900,7 @@ module.exports = (function() {
if ( s4 !== peg$FAILED ) {
s5 = peg$parsePrefixedExpression ( ) ;
if ( s5 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c12 ( s1 , s5 ) ;
s0 = s1 ;
} else {
@ -940,7 +940,7 @@ module.exports = (function() {
if ( s2 !== peg$FAILED ) {
s3 = peg$parseSuffixedExpression ( ) ;
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c13 ( s1 , s3 ) ;
s0 = s1 ;
} else {
@ -1004,7 +1004,7 @@ module.exports = (function() {
if ( s2 !== peg$FAILED ) {
s3 = peg$parseSuffixedOperator ( ) ;
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c20 ( s1 , s3 ) ;
s0 = s1 ;
} else {
@ -1094,7 +1094,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c30 ) ; }
}
if ( s5 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c31 ( s3 ) ;
s0 = s1 ;
} else {
@ -1186,7 +1186,7 @@ module.exports = (function() {
s2 = peg$FAILED ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c32 ( s1 ) ;
s0 = s1 ;
} else {
@ -1211,7 +1211,7 @@ module.exports = (function() {
if ( s2 !== peg$FAILED ) {
s3 = peg$parseCodeBlock ( ) ;
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c33 ( s1 , s3 ) ;
s0 = s1 ;
} else {
@ -1730,7 +1730,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseIdentifierName ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c68 ( s2 ) ;
s0 = s1 ;
} else {
@ -1759,7 +1759,7 @@ module.exports = (function() {
s3 = peg$parseIdentifierPart ( ) ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c70 ( s1 , s2 ) ;
s0 = s1 ;
} else {
@ -1811,7 +1811,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseUnicodeEscapeSequence ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c75 ( s2 ) ;
s0 = s1 ;
} else {
@ -2053,7 +2053,7 @@ module.exports = (function() {
s2 = null ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c83 ( s1 , s2 ) ;
s0 = s1 ;
} else {
@ -2101,7 +2101,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c86 ) ; }
}
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c87 ( s2 ) ;
s0 = s1 ;
} else {
@ -2141,7 +2141,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c89 ) ; }
}
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c87 ( s2 ) ;
s0 = s1 ;
} else {
@ -2201,7 +2201,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseSourceCharacter ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c90 ( ) ;
s0 = s1 ;
} else {
@ -2224,7 +2224,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseEscapeSequence ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c75 ( s2 ) ;
s0 = s1 ;
} else {
@ -2278,7 +2278,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseSourceCharacter ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c90 ( ) ;
s0 = s1 ;
} else {
@ -2301,7 +2301,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseEscapeSequence ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c75 ( s2 ) ;
s0 = s1 ;
} else {
@ -2376,7 +2376,7 @@ module.exports = (function() {
s5 = null ;
}
if ( s5 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c98 ( s2 , s3 , s5 ) ;
s0 = s1 ;
} else {
@ -2424,7 +2424,7 @@ module.exports = (function() {
if ( s2 !== peg$FAILED ) {
s3 = peg$parseClassCharacter ( ) ;
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c101 ( s1 , s3 ) ;
s0 = s1 ;
} else {
@ -2478,7 +2478,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseSourceCharacter ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c90 ( ) ;
s0 = s1 ;
} else {
@ -2501,7 +2501,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseEscapeSequence ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c75 ( s2 ) ;
s0 = s1 ;
} else {
@ -2534,7 +2534,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseLineTerminatorSequence ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c102 ( ) ;
s0 = s1 ;
} else {
@ -2574,7 +2574,7 @@ module.exports = (function() {
s2 = peg$FAILED ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c105 ( ) ;
s0 = s1 ;
} else {
@ -2643,7 +2643,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c107 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c108 ( ) ;
}
s0 = s1 ;
@ -2657,7 +2657,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c110 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c111 ( ) ;
}
s0 = s1 ;
@ -2671,7 +2671,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c113 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c114 ( ) ;
}
s0 = s1 ;
@ -2685,7 +2685,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c116 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c117 ( ) ;
}
s0 = s1 ;
@ -2699,7 +2699,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c119 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c120 ( ) ;
}
s0 = s1 ;
@ -2713,7 +2713,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c122 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c123 ( ) ;
}
s0 = s1 ;
@ -2749,7 +2749,7 @@ module.exports = (function() {
if ( s1 !== peg$FAILED ) {
s2 = peg$parseSourceCharacter ( ) ;
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c90 ( ) ;
s0 = s1 ;
} else {
@ -2827,7 +2827,7 @@ module.exports = (function() {
s2 = s3 ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c128 ( s2 ) ;
s0 = s1 ;
} else {
@ -2888,7 +2888,7 @@ module.exports = (function() {
s2 = s3 ;
}
if ( s2 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c128 ( s2 ) ;
s0 = s1 ;
} else {
@ -2943,7 +2943,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c134 ) ; }
}
if ( s1 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c135 ( ) ;
}
s0 = s1 ;
@ -2974,7 +2974,7 @@ module.exports = (function() {
if ( peg$silentFails === 0 ) { peg$fail ( peg$c140 ) ; }
}
if ( s3 !== peg$FAILED ) {
peg$ report edPos = s0 ;
peg$ sav edPos = s0 ;
s1 = peg$c141 ( s2 ) ;
s0 = s1 ;
} else {