parser.js 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166
  1. define(['./boot'], function($boot) {
  2. var $globals = $boot.globals;
  3. $globals.SmalltalkParser = (function() {
  4. "use strict";
  5. /*
  6. * Generated by PEG.js 0.9.0.
  7. *
  8. * http://pegjs.org/
  9. */
  10. function peg$subclass(child, parent) {
  11. function ctor() { this.constructor = child; }
  12. ctor.prototype = parent.prototype;
  13. child.prototype = new ctor();
  14. }
  15. function peg$SyntaxError(message, expected, found, location) {
  16. this.message = message;
  17. this.expected = expected;
  18. this.found = found;
  19. this.location = location;
  20. this.name = "SyntaxError";
  21. if (typeof Error.captureStackTrace === "function") {
  22. Error.captureStackTrace(this, peg$SyntaxError);
  23. }
  24. }
  25. peg$subclass(peg$SyntaxError, Error);
  26. function peg$parse(input) {
  27. var options = arguments.length > 1 ? arguments[1] : {},
  28. parser = this,
  29. peg$FAILED = {},
  30. peg$startRuleFunctions = { start: peg$parsestart },
  31. peg$startRuleFunction = peg$parsestart,
  32. peg$c0 = /^[ \t\x0B\f\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF\n\r\u2028\u2029]/,
  33. peg$c1 = { type: "class", value: "[ \\t\\v\\f\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF\\n\\r\\u2028\\u2029]", description: "[ \\t\\v\\f\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF\\n\\r\\u2028\\u2029]" },
  34. peg$c2 = "\"",
  35. peg$c3 = { type: "literal", value: "\"", description: "\"\\\"\"" },
  36. peg$c4 = /^[^"]/,
  37. peg$c5 = { type: "class", value: "[^\"]", description: "[^\"]" },
  38. peg$c6 = ".",
  39. peg$c7 = { type: "literal", value: ".", description: "\".\"" },
  40. peg$c8 = /^[a-zA-Z]/,
  41. peg$c9 = { type: "class", value: "[a-zA-Z]", description: "[a-zA-Z]" },
  42. peg$c10 = /^[a-zA-Z0-9]/,
  43. peg$c11 = { type: "class", value: "[a-zA-Z0-9]", description: "[a-zA-Z0-9]" },
  44. peg$c12 = ":",
  45. peg$c13 = { type: "literal", value: ":", description: "\":\"" },
  46. peg$c14 = /^[A-Z]/,
  47. peg$c15 = { type: "class", value: "[A-Z]", description: "[A-Z]" },
  48. peg$c16 = function(val) {
  49. return $globals.ValueNode._new()
  50. ._location_(location())
  51. ._source_(text())
  52. ._value_(val);
  53. },
  54. peg$c17 = "'",
  55. peg$c18 = { type: "literal", value: "'", description: "\"'\"" },
  56. peg$c19 = "''",
  57. peg$c20 = { type: "literal", value: "''", description: "\"''\"" },
  58. peg$c21 = function() {return '\'';},
  59. peg$c22 = /^[^']/,
  60. peg$c23 = { type: "class", value: "[^']", description: "[^']" },
  61. peg$c24 = function(val) {return val.join('');},
  62. peg$c25 = "$",
  63. peg$c26 = { type: "literal", value: "$", description: "\"$\"" },
  64. peg$c27 = { type: "any", description: "any character" },
  65. peg$c28 = function(char) {
  66. return $globals.ValueNode._new()
  67. ._location_(location())
  68. ._source_(text())
  69. ._value_(char);
  70. },
  71. peg$c29 = "#",
  72. peg$c30 = { type: "literal", value: "#", description: "\"#\"" },
  73. peg$c31 = function(rest) {return rest;},
  74. peg$c32 = "e",
  75. peg$c33 = { type: "literal", value: "e", description: "\"e\"" },
  76. peg$c34 = function(n) {return parseFloat(n);},
  77. peg$c35 = "-",
  78. peg$c36 = { type: "literal", value: "-", description: "\"-\"" },
  79. peg$c37 = "16r",
  80. peg$c38 = { type: "literal", value: "16r", description: "\"16r\"" },
  81. peg$c39 = /^[0-9a-fA-F]/,
  82. peg$c40 = { type: "class", value: "[0-9a-fA-F]", description: "[0-9a-fA-F]" },
  83. peg$c41 = function(neg, num) {
  84. return parseInt(((neg || '') + num), 16);
  85. },
  86. peg$c42 = /^[0-9]/,
  87. peg$c43 = { type: "class", value: "[0-9]", description: "[0-9]" },
  88. peg$c44 = function(n) {return parseFloat(n, 10);},
  89. peg$c45 = function(n) {return parseInt(n, 10);},
  90. peg$c46 = "#(",
  91. peg$c47 = { type: "literal", value: "#(", description: "\"#(\"" },
  92. peg$c48 = ")",
  93. peg$c49 = { type: "literal", value: ")", description: "\")\"" },
  94. peg$c50 = function(rest) {
  95. return rest
  96. ._location_(location())
  97. ._source_(text());
  98. },
  99. peg$c51 = "(",
  100. peg$c52 = { type: "literal", value: "(", description: "\"(\"" },
  101. peg$c53 = function(lit) {return lit._value();},
  102. peg$c54 = function(lits) {
  103. return $globals.ValueNode._new()
  104. ._value_(lits);
  105. },
  106. peg$c55 = "{",
  107. peg$c56 = { type: "literal", value: "{", description: "\"{\"" },
  108. peg$c57 = "}",
  109. peg$c58 = { type: "literal", value: "}", description: "\"}\"" },
  110. peg$c59 = function(expressions) {
  111. return $globals.DynamicArrayNode._new()
  112. ._location_(location())
  113. ._source_(text())
  114. ._dagChildren_(expressions || []);
  115. },
  116. peg$c60 = "#{",
  117. peg$c61 = { type: "literal", value: "#{", description: "\"#{\"" },
  118. peg$c62 = function(expressions) {
  119. return $globals.DynamicDictionaryNode._new()
  120. ._location_(location())
  121. ._source_(text())
  122. ._dagChildren_(expressions || []);
  123. },
  124. peg$c63 = "true",
  125. peg$c64 = { type: "literal", value: "true", description: "\"true\"" },
  126. peg$c65 = function() {return true;},
  127. peg$c66 = "false",
  128. peg$c67 = { type: "literal", value: "false", description: "\"false\"" },
  129. peg$c68 = function() {return false;},
  130. peg$c69 = "nil",
  131. peg$c70 = { type: "literal", value: "nil", description: "\"nil\"" },
  132. peg$c71 = function() {return null;},
  133. peg$c72 = function(identifier) {
  134. return $globals.VariableNode._new()
  135. ._location_(location())
  136. ._source_(text())
  137. ._value_(identifier);
  138. },
  139. peg$c73 = /^[\\+*\/=><,@%~|&\-]/,
  140. peg$c74 = { type: "class", value: "[\\\\+*/=><,@%~|&-]", description: "[\\\\+*/=><,@%~|&-]" },
  141. peg$c75 = function(key, arg) {return {key:key, arg:arg};},
  142. peg$c76 = function(pairs) {
  143. var selector = '';
  144. var params = [];
  145. for(var i = 0; i < pairs.length; i++) {
  146. selector += pairs[i].key;
  147. params.push(pairs[i].arg);
  148. }
  149. return [selector, params];
  150. },
  151. peg$c77 = function(selector, arg) {
  152. return [selector, [arg]];
  153. },
  154. peg$c78 = function(selector) {return [selector, []];},
  155. peg$c79 = function(expression) {
  156. return expression;
  157. },
  158. peg$c80 = function(first, others) {
  159. return [first].concat(others);
  160. },
  161. peg$c81 = ":=",
  162. peg$c82 = { type: "literal", value: ":=", description: "\":=\"" },
  163. peg$c83 = function(variable, expression) {
  164. return $globals.AssignmentNode._new()
  165. ._location_(location())
  166. ._source_(text())
  167. ._left_(variable)
  168. ._right_(expression);
  169. },
  170. peg$c84 = "^",
  171. peg$c85 = { type: "literal", value: "^", description: "\"^\"" },
  172. peg$c86 = function(expression) {
  173. return $globals.ReturnNode._new()
  174. ._location_(location())
  175. ._source_(text())
  176. ._dagChildren_([expression]);
  177. },
  178. peg$c87 = "|",
  179. peg$c88 = { type: "literal", value: "|", description: "\"|\"" },
  180. peg$c89 = function(variable) {return variable;},
  181. peg$c90 = function(vars) {
  182. return vars;
  183. },
  184. peg$c91 = function(param) {return param;},
  185. peg$c92 = function(params) {
  186. return params;
  187. },
  188. peg$c93 = function(ret) {return [ret];},
  189. peg$c94 = function(exps, ret) {
  190. var expressions = exps;
  191. expressions.push(ret);
  192. return expressions;
  193. },
  194. peg$c95 = function(expressions) {return expressions || [];},
  195. peg$c96 = function(js) {return js;},
  196. peg$c97 = function(temps, statements) {
  197. return $globals.SequenceNode._new()
  198. ._location_(location())
  199. ._source_(text())
  200. ._temps_(temps || [])
  201. ._dagChildren_(statements || []);
  202. },
  203. peg$c98 = "[",
  204. peg$c99 = { type: "literal", value: "[", description: "\"[\"" },
  205. peg$c100 = "]",
  206. peg$c101 = { type: "literal", value: "]", description: "\"]\"" },
  207. peg$c102 = function(params, sequence) {
  208. return $globals.BlockNode._new()
  209. ._location_(location())
  210. ._source_(text())
  211. ._parameters_(params || [])
  212. ._dagChildren_([sequence._asBlockSequenceNode()]);
  213. },
  214. peg$c103 = function(selector) {
  215. return $globals.SendNode._new()
  216. ._location_(location())
  217. ._source_(text())
  218. ._selector_(selector);
  219. },
  220. peg$c104 = function(receiver, tail) {
  221. return receiver._withTail_(tail);
  222. },
  223. peg$c105 = function(selector, arg) {
  224. return $globals.SendNode._new()
  225. ._location_(location())
  226. ._source_(text())
  227. ._selector_(selector)
  228. ._arguments_([arg]);
  229. },
  230. peg$c106 = function(pairs) {
  231. var selector = '';
  232. var args = [];
  233. for(var i = 0; i < pairs.length; i++) {
  234. selector += pairs[i].key;
  235. args.push(pairs[i].arg);
  236. }
  237. return $globals.SendNode._new()
  238. ._location_(location())
  239. ._source_(text())
  240. ._selector_(selector)
  241. ._arguments_(args);
  242. },
  243. peg$c107 = function(receiver, tail) {
  244. return tail ? receiver._withTail_([tail]) : receiver;
  245. },
  246. peg$c108 = function(send) {return send._isSendNode();},
  247. peg$c109 = ";",
  248. peg$c110 = { type: "literal", value: ";", description: "\";\"" },
  249. peg$c111 = function(send, mess) {return mess;},
  250. peg$c112 = function(send, messages) {
  251. messages.unshift(send);
  252. return $globals.CascadeNode._new()
  253. ._location_(location())
  254. ._source_(text())
  255. ._dagChildren_(messages);
  256. },
  257. peg$c113 = function(operand) {return operand;},
  258. peg$c114 = "=",
  259. peg$c115 = { type: "literal", value: "=", description: "\"=\"" },
  260. peg$c116 = function(selector, value) {
  261. return $globals.SendNode._new()
  262. ._location_(location())
  263. ._source_(text())
  264. ._selector_(selector + ':')
  265. ._arguments_([value]);
  266. },
  267. peg$c117 = "<",
  268. peg$c118 = { type: "literal", value: "<", description: "\"<\"" },
  269. peg$c119 = function(tag, attributes, operands) {return operands;},
  270. peg$c120 = ">",
  271. peg$c121 = { type: "literal", value: ">", description: "\">\"" },
  272. peg$c122 = function(tag, attributes, children) {
  273. return $globals.StromNode._new()
  274. ._location_(location())
  275. ._source_(text())
  276. ._tag_(tag)
  277. ._attributes_(attributes)
  278. ._children_(children || []);
  279. },
  280. peg$c123 = ">>",
  281. peg$c124 = { type: "literal", value: ">>", description: "\">>\"" },
  282. peg$c125 = function() {return '>';},
  283. peg$c126 = /^[^>]/,
  284. peg$c127 = { type: "class", value: "[^>]", description: "[^>]" },
  285. peg$c128 = function(val) {return !/^\s*inlineJS/.test(val.join(''));},
  286. peg$c129 = function(val) {
  287. console.warn('Use of <...js code...> is deprecated, in:\n' + val.join(''));
  288. return $globals.JSStatementNode._new()
  289. ._location_(location())
  290. ._source_(val.join(''))
  291. },
  292. peg$c130 = "inlineJS:",
  293. peg$c131 = { type: "literal", value: "inlineJS:", description: "\"inlineJS:\"" },
  294. peg$c132 = function(val) {
  295. return $globals.JSStatementNode._new()
  296. ._location_(location())
  297. ._source_(val)
  298. },
  299. peg$c133 = function(pattern, sequence) {
  300. return $globals.MethodNode._new()
  301. ._location_(location())
  302. ._source_(text())
  303. ._selector_(pattern[0])
  304. ._arguments_(pattern[1])
  305. ._dagChildren_([sequence]);
  306. },
  307. peg$c134 = function(send) { return send._isSendNode() && send._selector() === '->' },
  308. peg$c135 = function(send) {
  309. return [send._receiver(), send._arguments()[0]];
  310. },
  311. peg$c136 = function(first, others) {
  312. return first.concat.apply(first, others);
  313. },
  314. peg$currPos = 0,
  315. peg$savedPos = 0,
  316. peg$posDetailsCache = [{ line: 1, column: 1, seenCR: false }],
  317. peg$maxFailPos = 0,
  318. peg$maxFailExpected = [],
  319. peg$silentFails = 0,
  320. peg$resultsCache = {},
  321. peg$result;
  322. if ("startRule" in options) {
  323. if (!(options.startRule in peg$startRuleFunctions)) {
  324. throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
  325. }
  326. peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
  327. }
  328. function text() {
  329. return input.substring(peg$savedPos, peg$currPos);
  330. }
  331. function location() {
  332. return peg$computeLocation(peg$savedPos, peg$currPos);
  333. }
  334. function expected(description) {
  335. throw peg$buildException(
  336. null,
  337. [{ type: "other", description: description }],
  338. input.substring(peg$savedPos, peg$currPos),
  339. peg$computeLocation(peg$savedPos, peg$currPos)
  340. );
  341. }
  342. function error(message) {
  343. throw peg$buildException(
  344. message,
  345. null,
  346. input.substring(peg$savedPos, peg$currPos),
  347. peg$computeLocation(peg$savedPos, peg$currPos)
  348. );
  349. }
  350. function peg$computePosDetails(pos) {
  351. var details = peg$posDetailsCache[pos],
  352. p, ch;
  353. if (details) {
  354. return details;
  355. } else {
  356. p = pos - 1;
  357. while (!peg$posDetailsCache[p]) {
  358. p--;
  359. }
  360. details = peg$posDetailsCache[p];
  361. details = {
  362. line: details.line,
  363. column: details.column,
  364. seenCR: details.seenCR
  365. };
  366. while (p < pos) {
  367. ch = input.charAt(p);
  368. if (ch === "\n") {
  369. if (!details.seenCR) { details.line++; }
  370. details.column = 1;
  371. details.seenCR = false;
  372. } else if (ch === "\r" || ch === "\u2028" || ch === "\u2029") {
  373. details.line++;
  374. details.column = 1;
  375. details.seenCR = true;
  376. } else {
  377. details.column++;
  378. details.seenCR = false;
  379. }
  380. p++;
  381. }
  382. peg$posDetailsCache[pos] = details;
  383. return details;
  384. }
  385. }
  386. function peg$computeLocation(startPos, endPos) {
  387. var startPosDetails = peg$computePosDetails(startPos),
  388. endPosDetails = peg$computePosDetails(endPos);
  389. return {
  390. start: {
  391. offset: startPos,
  392. line: startPosDetails.line,
  393. column: startPosDetails.column
  394. },
  395. end: {
  396. offset: endPos,
  397. line: endPosDetails.line,
  398. column: endPosDetails.column
  399. }
  400. };
  401. }
  402. function peg$fail(expected) {
  403. if (peg$currPos < peg$maxFailPos) { return; }
  404. if (peg$currPos > peg$maxFailPos) {
  405. peg$maxFailPos = peg$currPos;
  406. peg$maxFailExpected = [];
  407. }
  408. peg$maxFailExpected.push(expected);
  409. }
  410. function peg$buildException(message, expected, found, location) {
  411. function cleanupExpected(expected) {
  412. var i = 1;
  413. expected.sort(function(a, b) {
  414. if (a.description < b.description) {
  415. return -1;
  416. } else if (a.description > b.description) {
  417. return 1;
  418. } else {
  419. return 0;
  420. }
  421. });
  422. while (i < expected.length) {
  423. if (expected[i - 1] === expected[i]) {
  424. expected.splice(i, 1);
  425. } else {
  426. i++;
  427. }
  428. }
  429. }
  430. function buildMessage(expected, found) {
  431. function stringEscape(s) {
  432. function hex(ch) { return ch.charCodeAt(0).toString(16).toUpperCase(); }
  433. return s
  434. .replace(/\\/g, '\\\\')
  435. .replace(/"/g, '\\"')
  436. .replace(/\x08/g, '\\b')
  437. .replace(/\t/g, '\\t')
  438. .replace(/\n/g, '\\n')
  439. .replace(/\f/g, '\\f')
  440. .replace(/\r/g, '\\r')
  441. .replace(/[\x00-\x07\x0B\x0E\x0F]/g, function(ch) { return '\\x0' + hex(ch); })
  442. .replace(/[\x10-\x1F\x80-\xFF]/g, function(ch) { return '\\x' + hex(ch); })
  443. .replace(/[\u0100-\u0FFF]/g, function(ch) { return '\\u0' + hex(ch); })
  444. .replace(/[\u1000-\uFFFF]/g, function(ch) { return '\\u' + hex(ch); });
  445. }
  446. var expectedDescs = new Array(expected.length),
  447. expectedDesc, foundDesc, i;
  448. for (i = 0; i < expected.length; i++) {
  449. expectedDescs[i] = expected[i].description;
  450. }
  451. expectedDesc = expected.length > 1
  452. ? expectedDescs.slice(0, -1).join(", ")
  453. + " or "
  454. + expectedDescs[expected.length - 1]
  455. : expectedDescs[0];
  456. foundDesc = found ? "\"" + stringEscape(found) + "\"" : "end of input";
  457. return "Expected " + expectedDesc + " but " + foundDesc + " found.";
  458. }
  459. if (expected !== null) {
  460. cleanupExpected(expected);
  461. }
  462. return new peg$SyntaxError(
  463. message !== null ? message : buildMessage(expected, found),
  464. expected,
  465. found,
  466. location
  467. );
  468. }
  469. function peg$parsestart() {
  470. var s0;
  471. var key = peg$currPos * 66 + 0,
  472. cached = peg$resultsCache[key];
  473. if (cached) {
  474. peg$currPos = cached.nextPos;
  475. return cached.result;
  476. }
  477. s0 = peg$parsemethod();
  478. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  479. return s0;
  480. }
  481. function peg$parseseparator() {
  482. var s0, s1;
  483. var key = peg$currPos * 66 + 1,
  484. cached = peg$resultsCache[key];
  485. if (cached) {
  486. peg$currPos = cached.nextPos;
  487. return cached.result;
  488. }
  489. s0 = [];
  490. if (peg$c0.test(input.charAt(peg$currPos))) {
  491. s1 = input.charAt(peg$currPos);
  492. peg$currPos++;
  493. } else {
  494. s1 = peg$FAILED;
  495. if (peg$silentFails === 0) { peg$fail(peg$c1); }
  496. }
  497. if (s1 !== peg$FAILED) {
  498. while (s1 !== peg$FAILED) {
  499. s0.push(s1);
  500. if (peg$c0.test(input.charAt(peg$currPos))) {
  501. s1 = input.charAt(peg$currPos);
  502. peg$currPos++;
  503. } else {
  504. s1 = peg$FAILED;
  505. if (peg$silentFails === 0) { peg$fail(peg$c1); }
  506. }
  507. }
  508. } else {
  509. s0 = peg$FAILED;
  510. }
  511. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  512. return s0;
  513. }
  514. function peg$parsecomments() {
  515. var s0, s1, s2, s3, s4;
  516. var key = peg$currPos * 66 + 2,
  517. cached = peg$resultsCache[key];
  518. if (cached) {
  519. peg$currPos = cached.nextPos;
  520. return cached.result;
  521. }
  522. s0 = [];
  523. s1 = peg$currPos;
  524. if (input.charCodeAt(peg$currPos) === 34) {
  525. s2 = peg$c2;
  526. peg$currPos++;
  527. } else {
  528. s2 = peg$FAILED;
  529. if (peg$silentFails === 0) { peg$fail(peg$c3); }
  530. }
  531. if (s2 !== peg$FAILED) {
  532. s3 = [];
  533. if (peg$c4.test(input.charAt(peg$currPos))) {
  534. s4 = input.charAt(peg$currPos);
  535. peg$currPos++;
  536. } else {
  537. s4 = peg$FAILED;
  538. if (peg$silentFails === 0) { peg$fail(peg$c5); }
  539. }
  540. while (s4 !== peg$FAILED) {
  541. s3.push(s4);
  542. if (peg$c4.test(input.charAt(peg$currPos))) {
  543. s4 = input.charAt(peg$currPos);
  544. peg$currPos++;
  545. } else {
  546. s4 = peg$FAILED;
  547. if (peg$silentFails === 0) { peg$fail(peg$c5); }
  548. }
  549. }
  550. if (s3 !== peg$FAILED) {
  551. if (input.charCodeAt(peg$currPos) === 34) {
  552. s4 = peg$c2;
  553. peg$currPos++;
  554. } else {
  555. s4 = peg$FAILED;
  556. if (peg$silentFails === 0) { peg$fail(peg$c3); }
  557. }
  558. if (s4 !== peg$FAILED) {
  559. s2 = [s2, s3, s4];
  560. s1 = s2;
  561. } else {
  562. peg$currPos = s1;
  563. s1 = peg$FAILED;
  564. }
  565. } else {
  566. peg$currPos = s1;
  567. s1 = peg$FAILED;
  568. }
  569. } else {
  570. peg$currPos = s1;
  571. s1 = peg$FAILED;
  572. }
  573. if (s1 !== peg$FAILED) {
  574. while (s1 !== peg$FAILED) {
  575. s0.push(s1);
  576. s1 = peg$currPos;
  577. if (input.charCodeAt(peg$currPos) === 34) {
  578. s2 = peg$c2;
  579. peg$currPos++;
  580. } else {
  581. s2 = peg$FAILED;
  582. if (peg$silentFails === 0) { peg$fail(peg$c3); }
  583. }
  584. if (s2 !== peg$FAILED) {
  585. s3 = [];
  586. if (peg$c4.test(input.charAt(peg$currPos))) {
  587. s4 = input.charAt(peg$currPos);
  588. peg$currPos++;
  589. } else {
  590. s4 = peg$FAILED;
  591. if (peg$silentFails === 0) { peg$fail(peg$c5); }
  592. }
  593. while (s4 !== peg$FAILED) {
  594. s3.push(s4);
  595. if (peg$c4.test(input.charAt(peg$currPos))) {
  596. s4 = input.charAt(peg$currPos);
  597. peg$currPos++;
  598. } else {
  599. s4 = peg$FAILED;
  600. if (peg$silentFails === 0) { peg$fail(peg$c5); }
  601. }
  602. }
  603. if (s3 !== peg$FAILED) {
  604. if (input.charCodeAt(peg$currPos) === 34) {
  605. s4 = peg$c2;
  606. peg$currPos++;
  607. } else {
  608. s4 = peg$FAILED;
  609. if (peg$silentFails === 0) { peg$fail(peg$c3); }
  610. }
  611. if (s4 !== peg$FAILED) {
  612. s2 = [s2, s3, s4];
  613. s1 = s2;
  614. } else {
  615. peg$currPos = s1;
  616. s1 = peg$FAILED;
  617. }
  618. } else {
  619. peg$currPos = s1;
  620. s1 = peg$FAILED;
  621. }
  622. } else {
  623. peg$currPos = s1;
  624. s1 = peg$FAILED;
  625. }
  626. }
  627. } else {
  628. s0 = peg$FAILED;
  629. }
  630. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  631. return s0;
  632. }
  633. function peg$parsews() {
  634. var s0, s1;
  635. var key = peg$currPos * 66 + 3,
  636. cached = peg$resultsCache[key];
  637. if (cached) {
  638. peg$currPos = cached.nextPos;
  639. return cached.result;
  640. }
  641. s0 = [];
  642. s1 = peg$parseseparator();
  643. if (s1 === peg$FAILED) {
  644. s1 = peg$parsecomments();
  645. }
  646. while (s1 !== peg$FAILED) {
  647. s0.push(s1);
  648. s1 = peg$parseseparator();
  649. if (s1 === peg$FAILED) {
  650. s1 = peg$parsecomments();
  651. }
  652. }
  653. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  654. return s0;
  655. }
  656. function peg$parsemaybeDotsWs() {
  657. var s0, s1;
  658. var key = peg$currPos * 66 + 4,
  659. cached = peg$resultsCache[key];
  660. if (cached) {
  661. peg$currPos = cached.nextPos;
  662. return cached.result;
  663. }
  664. s0 = [];
  665. if (input.charCodeAt(peg$currPos) === 46) {
  666. s1 = peg$c6;
  667. peg$currPos++;
  668. } else {
  669. s1 = peg$FAILED;
  670. if (peg$silentFails === 0) { peg$fail(peg$c7); }
  671. }
  672. if (s1 === peg$FAILED) {
  673. s1 = peg$parseseparator();
  674. if (s1 === peg$FAILED) {
  675. s1 = peg$parsecomments();
  676. }
  677. }
  678. while (s1 !== peg$FAILED) {
  679. s0.push(s1);
  680. if (input.charCodeAt(peg$currPos) === 46) {
  681. s1 = peg$c6;
  682. peg$currPos++;
  683. } else {
  684. s1 = peg$FAILED;
  685. if (peg$silentFails === 0) { peg$fail(peg$c7); }
  686. }
  687. if (s1 === peg$FAILED) {
  688. s1 = peg$parseseparator();
  689. if (s1 === peg$FAILED) {
  690. s1 = peg$parsecomments();
  691. }
  692. }
  693. }
  694. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  695. return s0;
  696. }
  697. function peg$parseidentifier() {
  698. var s0, s1, s2, s3, s4;
  699. var key = peg$currPos * 66 + 5,
  700. cached = peg$resultsCache[key];
  701. if (cached) {
  702. peg$currPos = cached.nextPos;
  703. return cached.result;
  704. }
  705. s0 = peg$currPos;
  706. s1 = peg$currPos;
  707. if (peg$c8.test(input.charAt(peg$currPos))) {
  708. s2 = input.charAt(peg$currPos);
  709. peg$currPos++;
  710. } else {
  711. s2 = peg$FAILED;
  712. if (peg$silentFails === 0) { peg$fail(peg$c9); }
  713. }
  714. if (s2 !== peg$FAILED) {
  715. s3 = [];
  716. if (peg$c10.test(input.charAt(peg$currPos))) {
  717. s4 = input.charAt(peg$currPos);
  718. peg$currPos++;
  719. } else {
  720. s4 = peg$FAILED;
  721. if (peg$silentFails === 0) { peg$fail(peg$c11); }
  722. }
  723. while (s4 !== peg$FAILED) {
  724. s3.push(s4);
  725. if (peg$c10.test(input.charAt(peg$currPos))) {
  726. s4 = input.charAt(peg$currPos);
  727. peg$currPos++;
  728. } else {
  729. s4 = peg$FAILED;
  730. if (peg$silentFails === 0) { peg$fail(peg$c11); }
  731. }
  732. }
  733. if (s3 !== peg$FAILED) {
  734. s2 = [s2, s3];
  735. s1 = s2;
  736. } else {
  737. peg$currPos = s1;
  738. s1 = peg$FAILED;
  739. }
  740. } else {
  741. peg$currPos = s1;
  742. s1 = peg$FAILED;
  743. }
  744. if (s1 !== peg$FAILED) {
  745. s0 = input.substring(s0, peg$currPos);
  746. } else {
  747. s0 = s1;
  748. }
  749. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  750. return s0;
  751. }
  752. function peg$parsekeyword() {
  753. var s0, s1, s2, s3;
  754. var key = peg$currPos * 66 + 6,
  755. cached = peg$resultsCache[key];
  756. if (cached) {
  757. peg$currPos = cached.nextPos;
  758. return cached.result;
  759. }
  760. s0 = peg$currPos;
  761. s1 = peg$currPos;
  762. s2 = peg$parseidentifier();
  763. if (s2 !== peg$FAILED) {
  764. if (input.charCodeAt(peg$currPos) === 58) {
  765. s3 = peg$c12;
  766. peg$currPos++;
  767. } else {
  768. s3 = peg$FAILED;
  769. if (peg$silentFails === 0) { peg$fail(peg$c13); }
  770. }
  771. if (s3 !== peg$FAILED) {
  772. s2 = [s2, s3];
  773. s1 = s2;
  774. } else {
  775. peg$currPos = s1;
  776. s1 = peg$FAILED;
  777. }
  778. } else {
  779. peg$currPos = s1;
  780. s1 = peg$FAILED;
  781. }
  782. if (s1 !== peg$FAILED) {
  783. s0 = input.substring(s0, peg$currPos);
  784. } else {
  785. s0 = s1;
  786. }
  787. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  788. return s0;
  789. }
  790. function peg$parseclassName() {
  791. var s0, s1, s2, s3, s4;
  792. var key = peg$currPos * 66 + 7,
  793. cached = peg$resultsCache[key];
  794. if (cached) {
  795. peg$currPos = cached.nextPos;
  796. return cached.result;
  797. }
  798. s0 = peg$currPos;
  799. s1 = peg$currPos;
  800. if (peg$c14.test(input.charAt(peg$currPos))) {
  801. s2 = input.charAt(peg$currPos);
  802. peg$currPos++;
  803. } else {
  804. s2 = peg$FAILED;
  805. if (peg$silentFails === 0) { peg$fail(peg$c15); }
  806. }
  807. if (s2 !== peg$FAILED) {
  808. s3 = [];
  809. if (peg$c10.test(input.charAt(peg$currPos))) {
  810. s4 = input.charAt(peg$currPos);
  811. peg$currPos++;
  812. } else {
  813. s4 = peg$FAILED;
  814. if (peg$silentFails === 0) { peg$fail(peg$c11); }
  815. }
  816. while (s4 !== peg$FAILED) {
  817. s3.push(s4);
  818. if (peg$c10.test(input.charAt(peg$currPos))) {
  819. s4 = input.charAt(peg$currPos);
  820. peg$currPos++;
  821. } else {
  822. s4 = peg$FAILED;
  823. if (peg$silentFails === 0) { peg$fail(peg$c11); }
  824. }
  825. }
  826. if (s3 !== peg$FAILED) {
  827. s2 = [s2, s3];
  828. s1 = s2;
  829. } else {
  830. peg$currPos = s1;
  831. s1 = peg$FAILED;
  832. }
  833. } else {
  834. peg$currPos = s1;
  835. s1 = peg$FAILED;
  836. }
  837. if (s1 !== peg$FAILED) {
  838. s0 = input.substring(s0, peg$currPos);
  839. } else {
  840. s0 = s1;
  841. }
  842. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  843. return s0;
  844. }
  845. function peg$parsestring() {
  846. var s0, s1;
  847. var key = peg$currPos * 66 + 8,
  848. cached = peg$resultsCache[key];
  849. if (cached) {
  850. peg$currPos = cached.nextPos;
  851. return cached.result;
  852. }
  853. s0 = peg$currPos;
  854. s1 = peg$parserawString();
  855. if (s1 !== peg$FAILED) {
  856. peg$savedPos = s0;
  857. s1 = peg$c16(s1);
  858. }
  859. s0 = s1;
  860. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  861. return s0;
  862. }
  863. function peg$parserawString() {
  864. var s0, s1, s2, s3, s4;
  865. var key = peg$currPos * 66 + 9,
  866. cached = peg$resultsCache[key];
  867. if (cached) {
  868. peg$currPos = cached.nextPos;
  869. return cached.result;
  870. }
  871. s0 = peg$currPos;
  872. if (input.charCodeAt(peg$currPos) === 39) {
  873. s1 = peg$c17;
  874. peg$currPos++;
  875. } else {
  876. s1 = peg$FAILED;
  877. if (peg$silentFails === 0) { peg$fail(peg$c18); }
  878. }
  879. if (s1 !== peg$FAILED) {
  880. s2 = [];
  881. s3 = peg$currPos;
  882. if (input.substr(peg$currPos, 2) === peg$c19) {
  883. s4 = peg$c19;
  884. peg$currPos += 2;
  885. } else {
  886. s4 = peg$FAILED;
  887. if (peg$silentFails === 0) { peg$fail(peg$c20); }
  888. }
  889. if (s4 !== peg$FAILED) {
  890. peg$savedPos = s3;
  891. s4 = peg$c21();
  892. }
  893. s3 = s4;
  894. if (s3 === peg$FAILED) {
  895. if (peg$c22.test(input.charAt(peg$currPos))) {
  896. s3 = input.charAt(peg$currPos);
  897. peg$currPos++;
  898. } else {
  899. s3 = peg$FAILED;
  900. if (peg$silentFails === 0) { peg$fail(peg$c23); }
  901. }
  902. }
  903. while (s3 !== peg$FAILED) {
  904. s2.push(s3);
  905. s3 = peg$currPos;
  906. if (input.substr(peg$currPos, 2) === peg$c19) {
  907. s4 = peg$c19;
  908. peg$currPos += 2;
  909. } else {
  910. s4 = peg$FAILED;
  911. if (peg$silentFails === 0) { peg$fail(peg$c20); }
  912. }
  913. if (s4 !== peg$FAILED) {
  914. peg$savedPos = s3;
  915. s4 = peg$c21();
  916. }
  917. s3 = s4;
  918. if (s3 === peg$FAILED) {
  919. if (peg$c22.test(input.charAt(peg$currPos))) {
  920. s3 = input.charAt(peg$currPos);
  921. peg$currPos++;
  922. } else {
  923. s3 = peg$FAILED;
  924. if (peg$silentFails === 0) { peg$fail(peg$c23); }
  925. }
  926. }
  927. }
  928. if (s2 !== peg$FAILED) {
  929. if (input.charCodeAt(peg$currPos) === 39) {
  930. s3 = peg$c17;
  931. peg$currPos++;
  932. } else {
  933. s3 = peg$FAILED;
  934. if (peg$silentFails === 0) { peg$fail(peg$c18); }
  935. }
  936. if (s3 !== peg$FAILED) {
  937. peg$savedPos = s0;
  938. s1 = peg$c24(s2);
  939. s0 = s1;
  940. } else {
  941. peg$currPos = s0;
  942. s0 = peg$FAILED;
  943. }
  944. } else {
  945. peg$currPos = s0;
  946. s0 = peg$FAILED;
  947. }
  948. } else {
  949. peg$currPos = s0;
  950. s0 = peg$FAILED;
  951. }
  952. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  953. return s0;
  954. }
  955. function peg$parsecharacter() {
  956. var s0, s1, s2;
  957. var key = peg$currPos * 66 + 10,
  958. cached = peg$resultsCache[key];
  959. if (cached) {
  960. peg$currPos = cached.nextPos;
  961. return cached.result;
  962. }
  963. s0 = peg$currPos;
  964. if (input.charCodeAt(peg$currPos) === 36) {
  965. s1 = peg$c25;
  966. peg$currPos++;
  967. } else {
  968. s1 = peg$FAILED;
  969. if (peg$silentFails === 0) { peg$fail(peg$c26); }
  970. }
  971. if (s1 !== peg$FAILED) {
  972. if (input.length > peg$currPos) {
  973. s2 = input.charAt(peg$currPos);
  974. peg$currPos++;
  975. } else {
  976. s2 = peg$FAILED;
  977. if (peg$silentFails === 0) { peg$fail(peg$c27); }
  978. }
  979. if (s2 !== peg$FAILED) {
  980. peg$savedPos = s0;
  981. s1 = peg$c28(s2);
  982. s0 = s1;
  983. } else {
  984. peg$currPos = s0;
  985. s0 = peg$FAILED;
  986. }
  987. } else {
  988. peg$currPos = s0;
  989. s0 = peg$FAILED;
  990. }
  991. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  992. return s0;
  993. }
  994. function peg$parsesymbol() {
  995. var s0, s1, s2;
  996. var key = peg$currPos * 66 + 11,
  997. cached = peg$resultsCache[key];
  998. if (cached) {
  999. peg$currPos = cached.nextPos;
  1000. return cached.result;
  1001. }
  1002. s0 = peg$currPos;
  1003. if (input.charCodeAt(peg$currPos) === 35) {
  1004. s1 = peg$c29;
  1005. peg$currPos++;
  1006. } else {
  1007. s1 = peg$FAILED;
  1008. if (peg$silentFails === 0) { peg$fail(peg$c30); }
  1009. }
  1010. if (s1 !== peg$FAILED) {
  1011. s2 = peg$parsebareSymbol();
  1012. if (s2 !== peg$FAILED) {
  1013. peg$savedPos = s0;
  1014. s1 = peg$c31(s2);
  1015. s0 = s1;
  1016. } else {
  1017. peg$currPos = s0;
  1018. s0 = peg$FAILED;
  1019. }
  1020. } else {
  1021. peg$currPos = s0;
  1022. s0 = peg$FAILED;
  1023. }
  1024. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1025. return s0;
  1026. }
  1027. function peg$parsebareSymbol() {
  1028. var s0, s1, s2, s3;
  1029. var key = peg$currPos * 66 + 12,
  1030. cached = peg$resultsCache[key];
  1031. if (cached) {
  1032. peg$currPos = cached.nextPos;
  1033. return cached.result;
  1034. }
  1035. s0 = peg$currPos;
  1036. s1 = peg$currPos;
  1037. s2 = [];
  1038. s3 = peg$parsekeyword();
  1039. if (s3 !== peg$FAILED) {
  1040. while (s3 !== peg$FAILED) {
  1041. s2.push(s3);
  1042. s3 = peg$parsekeyword();
  1043. }
  1044. } else {
  1045. s2 = peg$FAILED;
  1046. }
  1047. if (s2 !== peg$FAILED) {
  1048. s1 = input.substring(s1, peg$currPos);
  1049. } else {
  1050. s1 = s2;
  1051. }
  1052. if (s1 === peg$FAILED) {
  1053. s1 = peg$parsebinarySelector();
  1054. if (s1 === peg$FAILED) {
  1055. s1 = peg$parseidentifier();
  1056. if (s1 === peg$FAILED) {
  1057. s1 = peg$parserawString();
  1058. }
  1059. }
  1060. }
  1061. if (s1 !== peg$FAILED) {
  1062. peg$savedPos = s0;
  1063. s1 = peg$c16(s1);
  1064. }
  1065. s0 = s1;
  1066. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1067. return s0;
  1068. }
  1069. function peg$parsenumber() {
  1070. var s0, s1;
  1071. var key = peg$currPos * 66 + 13,
  1072. cached = peg$resultsCache[key];
  1073. if (cached) {
  1074. peg$currPos = cached.nextPos;
  1075. return cached.result;
  1076. }
  1077. s0 = peg$currPos;
  1078. s1 = peg$parserawNumber();
  1079. if (s1 !== peg$FAILED) {
  1080. peg$savedPos = s0;
  1081. s1 = peg$c16(s1);
  1082. }
  1083. s0 = s1;
  1084. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1085. return s0;
  1086. }
  1087. function peg$parserawNumber() {
  1088. var s0;
  1089. var key = peg$currPos * 66 + 14,
  1090. cached = peg$resultsCache[key];
  1091. if (cached) {
  1092. peg$currPos = cached.nextPos;
  1093. return cached.result;
  1094. }
  1095. s0 = peg$parsenumberExp();
  1096. if (s0 === peg$FAILED) {
  1097. s0 = peg$parsehex();
  1098. if (s0 === peg$FAILED) {
  1099. s0 = peg$parsefloat();
  1100. if (s0 === peg$FAILED) {
  1101. s0 = peg$parseinteger();
  1102. }
  1103. }
  1104. }
  1105. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1106. return s0;
  1107. }
  1108. function peg$parsenumberExp() {
  1109. var s0, s1, s2, s3, s4, s5;
  1110. var key = peg$currPos * 66 + 15,
  1111. cached = peg$resultsCache[key];
  1112. if (cached) {
  1113. peg$currPos = cached.nextPos;
  1114. return cached.result;
  1115. }
  1116. s0 = peg$currPos;
  1117. s1 = peg$currPos;
  1118. s2 = peg$currPos;
  1119. s3 = peg$parsefloat();
  1120. if (s3 === peg$FAILED) {
  1121. s3 = peg$parseinteger();
  1122. }
  1123. if (s3 !== peg$FAILED) {
  1124. if (input.charCodeAt(peg$currPos) === 101) {
  1125. s4 = peg$c32;
  1126. peg$currPos++;
  1127. } else {
  1128. s4 = peg$FAILED;
  1129. if (peg$silentFails === 0) { peg$fail(peg$c33); }
  1130. }
  1131. if (s4 !== peg$FAILED) {
  1132. s5 = peg$parseinteger();
  1133. if (s5 !== peg$FAILED) {
  1134. s3 = [s3, s4, s5];
  1135. s2 = s3;
  1136. } else {
  1137. peg$currPos = s2;
  1138. s2 = peg$FAILED;
  1139. }
  1140. } else {
  1141. peg$currPos = s2;
  1142. s2 = peg$FAILED;
  1143. }
  1144. } else {
  1145. peg$currPos = s2;
  1146. s2 = peg$FAILED;
  1147. }
  1148. if (s2 !== peg$FAILED) {
  1149. s1 = input.substring(s1, peg$currPos);
  1150. } else {
  1151. s1 = s2;
  1152. }
  1153. if (s1 !== peg$FAILED) {
  1154. peg$savedPos = s0;
  1155. s1 = peg$c34(s1);
  1156. }
  1157. s0 = s1;
  1158. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1159. return s0;
  1160. }
  1161. function peg$parsehex() {
  1162. var s0, s1, s2, s3, s4, s5;
  1163. var key = peg$currPos * 66 + 16,
  1164. cached = peg$resultsCache[key];
  1165. if (cached) {
  1166. peg$currPos = cached.nextPos;
  1167. return cached.result;
  1168. }
  1169. s0 = peg$currPos;
  1170. if (input.charCodeAt(peg$currPos) === 45) {
  1171. s1 = peg$c35;
  1172. peg$currPos++;
  1173. } else {
  1174. s1 = peg$FAILED;
  1175. if (peg$silentFails === 0) { peg$fail(peg$c36); }
  1176. }
  1177. if (s1 === peg$FAILED) {
  1178. s1 = null;
  1179. }
  1180. if (s1 !== peg$FAILED) {
  1181. if (input.substr(peg$currPos, 3) === peg$c37) {
  1182. s2 = peg$c37;
  1183. peg$currPos += 3;
  1184. } else {
  1185. s2 = peg$FAILED;
  1186. if (peg$silentFails === 0) { peg$fail(peg$c38); }
  1187. }
  1188. if (s2 !== peg$FAILED) {
  1189. s3 = peg$currPos;
  1190. s4 = [];
  1191. if (peg$c39.test(input.charAt(peg$currPos))) {
  1192. s5 = input.charAt(peg$currPos);
  1193. peg$currPos++;
  1194. } else {
  1195. s5 = peg$FAILED;
  1196. if (peg$silentFails === 0) { peg$fail(peg$c40); }
  1197. }
  1198. if (s5 !== peg$FAILED) {
  1199. while (s5 !== peg$FAILED) {
  1200. s4.push(s5);
  1201. if (peg$c39.test(input.charAt(peg$currPos))) {
  1202. s5 = input.charAt(peg$currPos);
  1203. peg$currPos++;
  1204. } else {
  1205. s5 = peg$FAILED;
  1206. if (peg$silentFails === 0) { peg$fail(peg$c40); }
  1207. }
  1208. }
  1209. } else {
  1210. s4 = peg$FAILED;
  1211. }
  1212. if (s4 !== peg$FAILED) {
  1213. s3 = input.substring(s3, peg$currPos);
  1214. } else {
  1215. s3 = s4;
  1216. }
  1217. if (s3 !== peg$FAILED) {
  1218. peg$savedPos = s0;
  1219. s1 = peg$c41(s1, s3);
  1220. s0 = s1;
  1221. } else {
  1222. peg$currPos = s0;
  1223. s0 = peg$FAILED;
  1224. }
  1225. } else {
  1226. peg$currPos = s0;
  1227. s0 = peg$FAILED;
  1228. }
  1229. } else {
  1230. peg$currPos = s0;
  1231. s0 = peg$FAILED;
  1232. }
  1233. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1234. return s0;
  1235. }
  1236. function peg$parsefloat() {
  1237. var s0, s1, s2, s3, s4, s5, s6, s7;
  1238. var key = peg$currPos * 66 + 17,
  1239. cached = peg$resultsCache[key];
  1240. if (cached) {
  1241. peg$currPos = cached.nextPos;
  1242. return cached.result;
  1243. }
  1244. s0 = peg$currPos;
  1245. s1 = peg$currPos;
  1246. s2 = peg$currPos;
  1247. if (input.charCodeAt(peg$currPos) === 45) {
  1248. s3 = peg$c35;
  1249. peg$currPos++;
  1250. } else {
  1251. s3 = peg$FAILED;
  1252. if (peg$silentFails === 0) { peg$fail(peg$c36); }
  1253. }
  1254. if (s3 === peg$FAILED) {
  1255. s3 = null;
  1256. }
  1257. if (s3 !== peg$FAILED) {
  1258. s4 = [];
  1259. if (peg$c42.test(input.charAt(peg$currPos))) {
  1260. s5 = input.charAt(peg$currPos);
  1261. peg$currPos++;
  1262. } else {
  1263. s5 = peg$FAILED;
  1264. if (peg$silentFails === 0) { peg$fail(peg$c43); }
  1265. }
  1266. if (s5 !== peg$FAILED) {
  1267. while (s5 !== peg$FAILED) {
  1268. s4.push(s5);
  1269. if (peg$c42.test(input.charAt(peg$currPos))) {
  1270. s5 = input.charAt(peg$currPos);
  1271. peg$currPos++;
  1272. } else {
  1273. s5 = peg$FAILED;
  1274. if (peg$silentFails === 0) { peg$fail(peg$c43); }
  1275. }
  1276. }
  1277. } else {
  1278. s4 = peg$FAILED;
  1279. }
  1280. if (s4 !== peg$FAILED) {
  1281. if (input.charCodeAt(peg$currPos) === 46) {
  1282. s5 = peg$c6;
  1283. peg$currPos++;
  1284. } else {
  1285. s5 = peg$FAILED;
  1286. if (peg$silentFails === 0) { peg$fail(peg$c7); }
  1287. }
  1288. if (s5 !== peg$FAILED) {
  1289. s6 = [];
  1290. if (peg$c42.test(input.charAt(peg$currPos))) {
  1291. s7 = input.charAt(peg$currPos);
  1292. peg$currPos++;
  1293. } else {
  1294. s7 = peg$FAILED;
  1295. if (peg$silentFails === 0) { peg$fail(peg$c43); }
  1296. }
  1297. if (s7 !== peg$FAILED) {
  1298. while (s7 !== peg$FAILED) {
  1299. s6.push(s7);
  1300. if (peg$c42.test(input.charAt(peg$currPos))) {
  1301. s7 = input.charAt(peg$currPos);
  1302. peg$currPos++;
  1303. } else {
  1304. s7 = peg$FAILED;
  1305. if (peg$silentFails === 0) { peg$fail(peg$c43); }
  1306. }
  1307. }
  1308. } else {
  1309. s6 = peg$FAILED;
  1310. }
  1311. if (s6 !== peg$FAILED) {
  1312. s3 = [s3, s4, s5, s6];
  1313. s2 = s3;
  1314. } else {
  1315. peg$currPos = s2;
  1316. s2 = peg$FAILED;
  1317. }
  1318. } else {
  1319. peg$currPos = s2;
  1320. s2 = peg$FAILED;
  1321. }
  1322. } else {
  1323. peg$currPos = s2;
  1324. s2 = peg$FAILED;
  1325. }
  1326. } else {
  1327. peg$currPos = s2;
  1328. s2 = peg$FAILED;
  1329. }
  1330. if (s2 !== peg$FAILED) {
  1331. s1 = input.substring(s1, peg$currPos);
  1332. } else {
  1333. s1 = s2;
  1334. }
  1335. if (s1 !== peg$FAILED) {
  1336. peg$savedPos = s0;
  1337. s1 = peg$c44(s1);
  1338. }
  1339. s0 = s1;
  1340. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1341. return s0;
  1342. }
  1343. function peg$parseinteger() {
  1344. var s0, s1, s2, s3, s4, s5;
  1345. var key = peg$currPos * 66 + 18,
  1346. cached = peg$resultsCache[key];
  1347. if (cached) {
  1348. peg$currPos = cached.nextPos;
  1349. return cached.result;
  1350. }
  1351. s0 = peg$currPos;
  1352. s1 = peg$currPos;
  1353. s2 = peg$currPos;
  1354. if (input.charCodeAt(peg$currPos) === 45) {
  1355. s3 = peg$c35;
  1356. peg$currPos++;
  1357. } else {
  1358. s3 = peg$FAILED;
  1359. if (peg$silentFails === 0) { peg$fail(peg$c36); }
  1360. }
  1361. if (s3 === peg$FAILED) {
  1362. s3 = null;
  1363. }
  1364. if (s3 !== peg$FAILED) {
  1365. s4 = [];
  1366. if (peg$c42.test(input.charAt(peg$currPos))) {
  1367. s5 = input.charAt(peg$currPos);
  1368. peg$currPos++;
  1369. } else {
  1370. s5 = peg$FAILED;
  1371. if (peg$silentFails === 0) { peg$fail(peg$c43); }
  1372. }
  1373. if (s5 !== peg$FAILED) {
  1374. while (s5 !== peg$FAILED) {
  1375. s4.push(s5);
  1376. if (peg$c42.test(input.charAt(peg$currPos))) {
  1377. s5 = input.charAt(peg$currPos);
  1378. peg$currPos++;
  1379. } else {
  1380. s5 = peg$FAILED;
  1381. if (peg$silentFails === 0) { peg$fail(peg$c43); }
  1382. }
  1383. }
  1384. } else {
  1385. s4 = peg$FAILED;
  1386. }
  1387. if (s4 !== peg$FAILED) {
  1388. s3 = [s3, s4];
  1389. s2 = s3;
  1390. } else {
  1391. peg$currPos = s2;
  1392. s2 = peg$FAILED;
  1393. }
  1394. } else {
  1395. peg$currPos = s2;
  1396. s2 = peg$FAILED;
  1397. }
  1398. if (s2 !== peg$FAILED) {
  1399. s1 = input.substring(s1, peg$currPos);
  1400. } else {
  1401. s1 = s2;
  1402. }
  1403. if (s1 !== peg$FAILED) {
  1404. peg$savedPos = s0;
  1405. s1 = peg$c45(s1);
  1406. }
  1407. s0 = s1;
  1408. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1409. return s0;
  1410. }
  1411. function peg$parseliteralArray() {
  1412. var s0, s1, s2, s3, s4;
  1413. var key = peg$currPos * 66 + 19,
  1414. cached = peg$resultsCache[key];
  1415. if (cached) {
  1416. peg$currPos = cached.nextPos;
  1417. return cached.result;
  1418. }
  1419. s0 = peg$currPos;
  1420. if (input.substr(peg$currPos, 2) === peg$c46) {
  1421. s1 = peg$c46;
  1422. peg$currPos += 2;
  1423. } else {
  1424. s1 = peg$FAILED;
  1425. if (peg$silentFails === 0) { peg$fail(peg$c47); }
  1426. }
  1427. if (s1 !== peg$FAILED) {
  1428. s2 = peg$parsewsLiteralArrayContents();
  1429. if (s2 !== peg$FAILED) {
  1430. s3 = peg$parsews();
  1431. if (s3 !== peg$FAILED) {
  1432. if (input.charCodeAt(peg$currPos) === 41) {
  1433. s4 = peg$c48;
  1434. peg$currPos++;
  1435. } else {
  1436. s4 = peg$FAILED;
  1437. if (peg$silentFails === 0) { peg$fail(peg$c49); }
  1438. }
  1439. if (s4 !== peg$FAILED) {
  1440. peg$savedPos = s0;
  1441. s1 = peg$c50(s2);
  1442. s0 = s1;
  1443. } else {
  1444. peg$currPos = s0;
  1445. s0 = peg$FAILED;
  1446. }
  1447. } else {
  1448. peg$currPos = s0;
  1449. s0 = peg$FAILED;
  1450. }
  1451. } else {
  1452. peg$currPos = s0;
  1453. s0 = peg$FAILED;
  1454. }
  1455. } else {
  1456. peg$currPos = s0;
  1457. s0 = peg$FAILED;
  1458. }
  1459. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1460. return s0;
  1461. }
  1462. function peg$parsebareLiteralArray() {
  1463. var s0, s1, s2, s3, s4;
  1464. var key = peg$currPos * 66 + 20,
  1465. cached = peg$resultsCache[key];
  1466. if (cached) {
  1467. peg$currPos = cached.nextPos;
  1468. return cached.result;
  1469. }
  1470. s0 = peg$currPos;
  1471. if (input.charCodeAt(peg$currPos) === 40) {
  1472. s1 = peg$c51;
  1473. peg$currPos++;
  1474. } else {
  1475. s1 = peg$FAILED;
  1476. if (peg$silentFails === 0) { peg$fail(peg$c52); }
  1477. }
  1478. if (s1 !== peg$FAILED) {
  1479. s2 = peg$parsewsLiteralArrayContents();
  1480. if (s2 !== peg$FAILED) {
  1481. s3 = peg$parsews();
  1482. if (s3 !== peg$FAILED) {
  1483. if (input.charCodeAt(peg$currPos) === 41) {
  1484. s4 = peg$c48;
  1485. peg$currPos++;
  1486. } else {
  1487. s4 = peg$FAILED;
  1488. if (peg$silentFails === 0) { peg$fail(peg$c49); }
  1489. }
  1490. if (s4 !== peg$FAILED) {
  1491. peg$savedPos = s0;
  1492. s1 = peg$c50(s2);
  1493. s0 = s1;
  1494. } else {
  1495. peg$currPos = s0;
  1496. s0 = peg$FAILED;
  1497. }
  1498. } else {
  1499. peg$currPos = s0;
  1500. s0 = peg$FAILED;
  1501. }
  1502. } else {
  1503. peg$currPos = s0;
  1504. s0 = peg$FAILED;
  1505. }
  1506. } else {
  1507. peg$currPos = s0;
  1508. s0 = peg$FAILED;
  1509. }
  1510. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1511. return s0;
  1512. }
  1513. function peg$parseliteralArrayElement() {
  1514. var s0;
  1515. var key = peg$currPos * 66 + 21,
  1516. cached = peg$resultsCache[key];
  1517. if (cached) {
  1518. peg$currPos = cached.nextPos;
  1519. return cached.result;
  1520. }
  1521. s0 = peg$parseparseTimeLiteral();
  1522. if (s0 === peg$FAILED) {
  1523. s0 = peg$parsebareLiteralArray();
  1524. if (s0 === peg$FAILED) {
  1525. s0 = peg$parsebareSymbol();
  1526. }
  1527. }
  1528. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1529. return s0;
  1530. }
  1531. function peg$parsewsLiteralArrayContents() {
  1532. var s0, s1, s2, s3, s4;
  1533. var key = peg$currPos * 66 + 22,
  1534. cached = peg$resultsCache[key];
  1535. if (cached) {
  1536. peg$currPos = cached.nextPos;
  1537. return cached.result;
  1538. }
  1539. s0 = peg$currPos;
  1540. s1 = [];
  1541. s2 = peg$currPos;
  1542. s3 = peg$parsews();
  1543. if (s3 !== peg$FAILED) {
  1544. s4 = peg$parseliteralArrayElement();
  1545. if (s4 !== peg$FAILED) {
  1546. peg$savedPos = s2;
  1547. s3 = peg$c53(s4);
  1548. s2 = s3;
  1549. } else {
  1550. peg$currPos = s2;
  1551. s2 = peg$FAILED;
  1552. }
  1553. } else {
  1554. peg$currPos = s2;
  1555. s2 = peg$FAILED;
  1556. }
  1557. while (s2 !== peg$FAILED) {
  1558. s1.push(s2);
  1559. s2 = peg$currPos;
  1560. s3 = peg$parsews();
  1561. if (s3 !== peg$FAILED) {
  1562. s4 = peg$parseliteralArrayElement();
  1563. if (s4 !== peg$FAILED) {
  1564. peg$savedPos = s2;
  1565. s3 = peg$c53(s4);
  1566. s2 = s3;
  1567. } else {
  1568. peg$currPos = s2;
  1569. s2 = peg$FAILED;
  1570. }
  1571. } else {
  1572. peg$currPos = s2;
  1573. s2 = peg$FAILED;
  1574. }
  1575. }
  1576. if (s1 !== peg$FAILED) {
  1577. peg$savedPos = s0;
  1578. s1 = peg$c54(s1);
  1579. }
  1580. s0 = s1;
  1581. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1582. return s0;
  1583. }
  1584. function peg$parsedynamicArray() {
  1585. var s0, s1, s2, s3, s4;
  1586. var key = peg$currPos * 66 + 23,
  1587. cached = peg$resultsCache[key];
  1588. if (cached) {
  1589. peg$currPos = cached.nextPos;
  1590. return cached.result;
  1591. }
  1592. s0 = peg$currPos;
  1593. if (input.charCodeAt(peg$currPos) === 123) {
  1594. s1 = peg$c55;
  1595. peg$currPos++;
  1596. } else {
  1597. s1 = peg$FAILED;
  1598. if (peg$silentFails === 0) { peg$fail(peg$c56); }
  1599. }
  1600. if (s1 !== peg$FAILED) {
  1601. s2 = peg$parsewsExpressions();
  1602. if (s2 === peg$FAILED) {
  1603. s2 = null;
  1604. }
  1605. if (s2 !== peg$FAILED) {
  1606. s3 = peg$parsemaybeDotsWs();
  1607. if (s3 !== peg$FAILED) {
  1608. if (input.charCodeAt(peg$currPos) === 125) {
  1609. s4 = peg$c57;
  1610. peg$currPos++;
  1611. } else {
  1612. s4 = peg$FAILED;
  1613. if (peg$silentFails === 0) { peg$fail(peg$c58); }
  1614. }
  1615. if (s4 !== peg$FAILED) {
  1616. peg$savedPos = s0;
  1617. s1 = peg$c59(s2);
  1618. s0 = s1;
  1619. } else {
  1620. peg$currPos = s0;
  1621. s0 = peg$FAILED;
  1622. }
  1623. } else {
  1624. peg$currPos = s0;
  1625. s0 = peg$FAILED;
  1626. }
  1627. } else {
  1628. peg$currPos = s0;
  1629. s0 = peg$FAILED;
  1630. }
  1631. } else {
  1632. peg$currPos = s0;
  1633. s0 = peg$FAILED;
  1634. }
  1635. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1636. return s0;
  1637. }
  1638. function peg$parsedynamicDictionary() {
  1639. var s0, s1, s2, s3, s4;
  1640. var key = peg$currPos * 66 + 24,
  1641. cached = peg$resultsCache[key];
  1642. if (cached) {
  1643. peg$currPos = cached.nextPos;
  1644. return cached.result;
  1645. }
  1646. s0 = peg$currPos;
  1647. if (input.substr(peg$currPos, 2) === peg$c60) {
  1648. s1 = peg$c60;
  1649. peg$currPos += 2;
  1650. } else {
  1651. s1 = peg$FAILED;
  1652. if (peg$silentFails === 0) { peg$fail(peg$c61); }
  1653. }
  1654. if (s1 !== peg$FAILED) {
  1655. s2 = peg$parsewsAssociations();
  1656. if (s2 === peg$FAILED) {
  1657. s2 = null;
  1658. }
  1659. if (s2 !== peg$FAILED) {
  1660. s3 = peg$parsemaybeDotsWs();
  1661. if (s3 !== peg$FAILED) {
  1662. if (input.charCodeAt(peg$currPos) === 125) {
  1663. s4 = peg$c57;
  1664. peg$currPos++;
  1665. } else {
  1666. s4 = peg$FAILED;
  1667. if (peg$silentFails === 0) { peg$fail(peg$c58); }
  1668. }
  1669. if (s4 !== peg$FAILED) {
  1670. peg$savedPos = s0;
  1671. s1 = peg$c62(s2);
  1672. s0 = s1;
  1673. } else {
  1674. peg$currPos = s0;
  1675. s0 = peg$FAILED;
  1676. }
  1677. } else {
  1678. peg$currPos = s0;
  1679. s0 = peg$FAILED;
  1680. }
  1681. } else {
  1682. peg$currPos = s0;
  1683. s0 = peg$FAILED;
  1684. }
  1685. } else {
  1686. peg$currPos = s0;
  1687. s0 = peg$FAILED;
  1688. }
  1689. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1690. return s0;
  1691. }
  1692. function peg$parsepseudoVariable() {
  1693. var s0, s1, s2;
  1694. var key = peg$currPos * 66 + 25,
  1695. cached = peg$resultsCache[key];
  1696. if (cached) {
  1697. peg$currPos = cached.nextPos;
  1698. return cached.result;
  1699. }
  1700. s0 = peg$currPos;
  1701. s1 = peg$currPos;
  1702. if (input.substr(peg$currPos, 4) === peg$c63) {
  1703. s2 = peg$c63;
  1704. peg$currPos += 4;
  1705. } else {
  1706. s2 = peg$FAILED;
  1707. if (peg$silentFails === 0) { peg$fail(peg$c64); }
  1708. }
  1709. if (s2 !== peg$FAILED) {
  1710. peg$savedPos = s1;
  1711. s2 = peg$c65();
  1712. }
  1713. s1 = s2;
  1714. if (s1 === peg$FAILED) {
  1715. s1 = peg$currPos;
  1716. if (input.substr(peg$currPos, 5) === peg$c66) {
  1717. s2 = peg$c66;
  1718. peg$currPos += 5;
  1719. } else {
  1720. s2 = peg$FAILED;
  1721. if (peg$silentFails === 0) { peg$fail(peg$c67); }
  1722. }
  1723. if (s2 !== peg$FAILED) {
  1724. peg$savedPos = s1;
  1725. s2 = peg$c68();
  1726. }
  1727. s1 = s2;
  1728. if (s1 === peg$FAILED) {
  1729. s1 = peg$currPos;
  1730. if (input.substr(peg$currPos, 3) === peg$c69) {
  1731. s2 = peg$c69;
  1732. peg$currPos += 3;
  1733. } else {
  1734. s2 = peg$FAILED;
  1735. if (peg$silentFails === 0) { peg$fail(peg$c70); }
  1736. }
  1737. if (s2 !== peg$FAILED) {
  1738. peg$savedPos = s1;
  1739. s2 = peg$c71();
  1740. }
  1741. s1 = s2;
  1742. }
  1743. }
  1744. if (s1 !== peg$FAILED) {
  1745. peg$savedPos = s0;
  1746. s1 = peg$c16(s1);
  1747. }
  1748. s0 = s1;
  1749. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1750. return s0;
  1751. }
  1752. function peg$parseparseTimeLiteral() {
  1753. var s0;
  1754. var key = peg$currPos * 66 + 26,
  1755. cached = peg$resultsCache[key];
  1756. if (cached) {
  1757. peg$currPos = cached.nextPos;
  1758. return cached.result;
  1759. }
  1760. s0 = peg$parsepseudoVariable();
  1761. if (s0 === peg$FAILED) {
  1762. s0 = peg$parsenumber();
  1763. if (s0 === peg$FAILED) {
  1764. s0 = peg$parseliteralArray();
  1765. if (s0 === peg$FAILED) {
  1766. s0 = peg$parsestring();
  1767. if (s0 === peg$FAILED) {
  1768. s0 = peg$parsesymbol();
  1769. if (s0 === peg$FAILED) {
  1770. s0 = peg$parsecharacter();
  1771. }
  1772. }
  1773. }
  1774. }
  1775. }
  1776. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1777. return s0;
  1778. }
  1779. function peg$parseruntimeLiteral() {
  1780. var s0;
  1781. var key = peg$currPos * 66 + 27,
  1782. cached = peg$resultsCache[key];
  1783. if (cached) {
  1784. peg$currPos = cached.nextPos;
  1785. return cached.result;
  1786. }
  1787. s0 = peg$parsedynamicDictionary();
  1788. if (s0 === peg$FAILED) {
  1789. s0 = peg$parsedynamicArray();
  1790. if (s0 === peg$FAILED) {
  1791. s0 = peg$parseblock();
  1792. if (s0 === peg$FAILED) {
  1793. s0 = peg$parsestrom();
  1794. }
  1795. }
  1796. }
  1797. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1798. return s0;
  1799. }
  1800. function peg$parseliteral() {
  1801. var s0;
  1802. var key = peg$currPos * 66 + 28,
  1803. cached = peg$resultsCache[key];
  1804. if (cached) {
  1805. peg$currPos = cached.nextPos;
  1806. return cached.result;
  1807. }
  1808. s0 = peg$parseruntimeLiteral();
  1809. if (s0 === peg$FAILED) {
  1810. s0 = peg$parseparseTimeLiteral();
  1811. }
  1812. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1813. return s0;
  1814. }
  1815. function peg$parsevariable() {
  1816. var s0, s1;
  1817. var key = peg$currPos * 66 + 29,
  1818. cached = peg$resultsCache[key];
  1819. if (cached) {
  1820. peg$currPos = cached.nextPos;
  1821. return cached.result;
  1822. }
  1823. s0 = peg$currPos;
  1824. s1 = peg$parseidentifier();
  1825. if (s1 !== peg$FAILED) {
  1826. peg$savedPos = s0;
  1827. s1 = peg$c72(s1);
  1828. }
  1829. s0 = s1;
  1830. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1831. return s0;
  1832. }
  1833. function peg$parsebinarySelector() {
  1834. var s0, s1, s2;
  1835. var key = peg$currPos * 66 + 30,
  1836. cached = peg$resultsCache[key];
  1837. if (cached) {
  1838. peg$currPos = cached.nextPos;
  1839. return cached.result;
  1840. }
  1841. s0 = peg$currPos;
  1842. s1 = [];
  1843. if (peg$c73.test(input.charAt(peg$currPos))) {
  1844. s2 = input.charAt(peg$currPos);
  1845. peg$currPos++;
  1846. } else {
  1847. s2 = peg$FAILED;
  1848. if (peg$silentFails === 0) { peg$fail(peg$c74); }
  1849. }
  1850. if (s2 !== peg$FAILED) {
  1851. while (s2 !== peg$FAILED) {
  1852. s1.push(s2);
  1853. if (peg$c73.test(input.charAt(peg$currPos))) {
  1854. s2 = input.charAt(peg$currPos);
  1855. peg$currPos++;
  1856. } else {
  1857. s2 = peg$FAILED;
  1858. if (peg$silentFails === 0) { peg$fail(peg$c74); }
  1859. }
  1860. }
  1861. } else {
  1862. s1 = peg$FAILED;
  1863. }
  1864. if (s1 !== peg$FAILED) {
  1865. s0 = input.substring(s0, peg$currPos);
  1866. } else {
  1867. s0 = s1;
  1868. }
  1869. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1870. return s0;
  1871. }
  1872. function peg$parsewsKeywordPattern() {
  1873. var s0, s1, s2, s3, s4, s5, s6;
  1874. var key = peg$currPos * 66 + 31,
  1875. cached = peg$resultsCache[key];
  1876. if (cached) {
  1877. peg$currPos = cached.nextPos;
  1878. return cached.result;
  1879. }
  1880. s0 = peg$currPos;
  1881. s1 = [];
  1882. s2 = peg$currPos;
  1883. s3 = peg$parsews();
  1884. if (s3 !== peg$FAILED) {
  1885. s4 = peg$parsekeyword();
  1886. if (s4 !== peg$FAILED) {
  1887. s5 = peg$parsews();
  1888. if (s5 !== peg$FAILED) {
  1889. s6 = peg$parseidentifier();
  1890. if (s6 !== peg$FAILED) {
  1891. peg$savedPos = s2;
  1892. s3 = peg$c75(s4, s6);
  1893. s2 = s3;
  1894. } else {
  1895. peg$currPos = s2;
  1896. s2 = peg$FAILED;
  1897. }
  1898. } else {
  1899. peg$currPos = s2;
  1900. s2 = peg$FAILED;
  1901. }
  1902. } else {
  1903. peg$currPos = s2;
  1904. s2 = peg$FAILED;
  1905. }
  1906. } else {
  1907. peg$currPos = s2;
  1908. s2 = peg$FAILED;
  1909. }
  1910. if (s2 !== peg$FAILED) {
  1911. while (s2 !== peg$FAILED) {
  1912. s1.push(s2);
  1913. s2 = peg$currPos;
  1914. s3 = peg$parsews();
  1915. if (s3 !== peg$FAILED) {
  1916. s4 = peg$parsekeyword();
  1917. if (s4 !== peg$FAILED) {
  1918. s5 = peg$parsews();
  1919. if (s5 !== peg$FAILED) {
  1920. s6 = peg$parseidentifier();
  1921. if (s6 !== peg$FAILED) {
  1922. peg$savedPos = s2;
  1923. s3 = peg$c75(s4, s6);
  1924. s2 = s3;
  1925. } else {
  1926. peg$currPos = s2;
  1927. s2 = peg$FAILED;
  1928. }
  1929. } else {
  1930. peg$currPos = s2;
  1931. s2 = peg$FAILED;
  1932. }
  1933. } else {
  1934. peg$currPos = s2;
  1935. s2 = peg$FAILED;
  1936. }
  1937. } else {
  1938. peg$currPos = s2;
  1939. s2 = peg$FAILED;
  1940. }
  1941. }
  1942. } else {
  1943. s1 = peg$FAILED;
  1944. }
  1945. if (s1 !== peg$FAILED) {
  1946. peg$savedPos = s0;
  1947. s1 = peg$c76(s1);
  1948. }
  1949. s0 = s1;
  1950. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1951. return s0;
  1952. }
  1953. function peg$parsewsBinaryPattern() {
  1954. var s0, s1, s2, s3, s4;
  1955. var key = peg$currPos * 66 + 32,
  1956. cached = peg$resultsCache[key];
  1957. if (cached) {
  1958. peg$currPos = cached.nextPos;
  1959. return cached.result;
  1960. }
  1961. s0 = peg$currPos;
  1962. s1 = peg$parsews();
  1963. if (s1 !== peg$FAILED) {
  1964. s2 = peg$parsebinarySelector();
  1965. if (s2 !== peg$FAILED) {
  1966. s3 = peg$parsews();
  1967. if (s3 !== peg$FAILED) {
  1968. s4 = peg$parseidentifier();
  1969. if (s4 !== peg$FAILED) {
  1970. peg$savedPos = s0;
  1971. s1 = peg$c77(s2, s4);
  1972. s0 = s1;
  1973. } else {
  1974. peg$currPos = s0;
  1975. s0 = peg$FAILED;
  1976. }
  1977. } else {
  1978. peg$currPos = s0;
  1979. s0 = peg$FAILED;
  1980. }
  1981. } else {
  1982. peg$currPos = s0;
  1983. s0 = peg$FAILED;
  1984. }
  1985. } else {
  1986. peg$currPos = s0;
  1987. s0 = peg$FAILED;
  1988. }
  1989. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  1990. return s0;
  1991. }
  1992. function peg$parsewsUnaryPattern() {
  1993. var s0, s1, s2;
  1994. var key = peg$currPos * 66 + 33,
  1995. cached = peg$resultsCache[key];
  1996. if (cached) {
  1997. peg$currPos = cached.nextPos;
  1998. return cached.result;
  1999. }
  2000. s0 = peg$currPos;
  2001. s1 = peg$parsews();
  2002. if (s1 !== peg$FAILED) {
  2003. s2 = peg$parseidentifier();
  2004. if (s2 !== peg$FAILED) {
  2005. peg$savedPos = s0;
  2006. s1 = peg$c78(s2);
  2007. s0 = s1;
  2008. } else {
  2009. peg$currPos = s0;
  2010. s0 = peg$FAILED;
  2011. }
  2012. } else {
  2013. peg$currPos = s0;
  2014. s0 = peg$FAILED;
  2015. }
  2016. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2017. return s0;
  2018. }
  2019. function peg$parseexpression() {
  2020. var s0;
  2021. var key = peg$currPos * 66 + 34,
  2022. cached = peg$resultsCache[key];
  2023. if (cached) {
  2024. peg$currPos = cached.nextPos;
  2025. return cached.result;
  2026. }
  2027. s0 = peg$parseassignment();
  2028. if (s0 === peg$FAILED) {
  2029. s0 = peg$parsecascade();
  2030. if (s0 === peg$FAILED) {
  2031. s0 = peg$parsekeywordSend();
  2032. }
  2033. }
  2034. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2035. return s0;
  2036. }
  2037. function peg$parsewsExpressionsRest() {
  2038. var s0, s1, s2, s3, s4;
  2039. var key = peg$currPos * 66 + 35,
  2040. cached = peg$resultsCache[key];
  2041. if (cached) {
  2042. peg$currPos = cached.nextPos;
  2043. return cached.result;
  2044. }
  2045. s0 = peg$currPos;
  2046. s1 = peg$parsews();
  2047. if (s1 !== peg$FAILED) {
  2048. if (input.charCodeAt(peg$currPos) === 46) {
  2049. s2 = peg$c6;
  2050. peg$currPos++;
  2051. } else {
  2052. s2 = peg$FAILED;
  2053. if (peg$silentFails === 0) { peg$fail(peg$c7); }
  2054. }
  2055. if (s2 !== peg$FAILED) {
  2056. s3 = peg$parsemaybeDotsWs();
  2057. if (s3 !== peg$FAILED) {
  2058. s4 = peg$parseexpression();
  2059. if (s4 !== peg$FAILED) {
  2060. peg$savedPos = s0;
  2061. s1 = peg$c79(s4);
  2062. s0 = s1;
  2063. } else {
  2064. peg$currPos = s0;
  2065. s0 = peg$FAILED;
  2066. }
  2067. } else {
  2068. peg$currPos = s0;
  2069. s0 = peg$FAILED;
  2070. }
  2071. } else {
  2072. peg$currPos = s0;
  2073. s0 = peg$FAILED;
  2074. }
  2075. } else {
  2076. peg$currPos = s0;
  2077. s0 = peg$FAILED;
  2078. }
  2079. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2080. return s0;
  2081. }
  2082. function peg$parsewsExpressions() {
  2083. var s0, s1, s2, s3, s4;
  2084. var key = peg$currPos * 66 + 36,
  2085. cached = peg$resultsCache[key];
  2086. if (cached) {
  2087. peg$currPos = cached.nextPos;
  2088. return cached.result;
  2089. }
  2090. s0 = peg$currPos;
  2091. s1 = peg$parsemaybeDotsWs();
  2092. if (s1 !== peg$FAILED) {
  2093. s2 = peg$parseexpression();
  2094. if (s2 !== peg$FAILED) {
  2095. s3 = [];
  2096. s4 = peg$parsewsExpressionsRest();
  2097. while (s4 !== peg$FAILED) {
  2098. s3.push(s4);
  2099. s4 = peg$parsewsExpressionsRest();
  2100. }
  2101. if (s3 !== peg$FAILED) {
  2102. peg$savedPos = s0;
  2103. s1 = peg$c80(s2, s3);
  2104. s0 = s1;
  2105. } else {
  2106. peg$currPos = s0;
  2107. s0 = peg$FAILED;
  2108. }
  2109. } else {
  2110. peg$currPos = s0;
  2111. s0 = peg$FAILED;
  2112. }
  2113. } else {
  2114. peg$currPos = s0;
  2115. s0 = peg$FAILED;
  2116. }
  2117. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2118. return s0;
  2119. }
  2120. function peg$parseassignment() {
  2121. var s0, s1, s2, s3, s4, s5;
  2122. var key = peg$currPos * 66 + 37,
  2123. cached = peg$resultsCache[key];
  2124. if (cached) {
  2125. peg$currPos = cached.nextPos;
  2126. return cached.result;
  2127. }
  2128. s0 = peg$currPos;
  2129. s1 = peg$parsevariable();
  2130. if (s1 !== peg$FAILED) {
  2131. s2 = peg$parsews();
  2132. if (s2 !== peg$FAILED) {
  2133. if (input.substr(peg$currPos, 2) === peg$c81) {
  2134. s3 = peg$c81;
  2135. peg$currPos += 2;
  2136. } else {
  2137. s3 = peg$FAILED;
  2138. if (peg$silentFails === 0) { peg$fail(peg$c82); }
  2139. }
  2140. if (s3 !== peg$FAILED) {
  2141. s4 = peg$parsews();
  2142. if (s4 !== peg$FAILED) {
  2143. s5 = peg$parseexpression();
  2144. if (s5 !== peg$FAILED) {
  2145. peg$savedPos = s0;
  2146. s1 = peg$c83(s1, s5);
  2147. s0 = s1;
  2148. } else {
  2149. peg$currPos = s0;
  2150. s0 = peg$FAILED;
  2151. }
  2152. } else {
  2153. peg$currPos = s0;
  2154. s0 = peg$FAILED;
  2155. }
  2156. } else {
  2157. peg$currPos = s0;
  2158. s0 = peg$FAILED;
  2159. }
  2160. } else {
  2161. peg$currPos = s0;
  2162. s0 = peg$FAILED;
  2163. }
  2164. } else {
  2165. peg$currPos = s0;
  2166. s0 = peg$FAILED;
  2167. }
  2168. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2169. return s0;
  2170. }
  2171. function peg$parseret() {
  2172. var s0, s1, s2, s3;
  2173. var key = peg$currPos * 66 + 38,
  2174. cached = peg$resultsCache[key];
  2175. if (cached) {
  2176. peg$currPos = cached.nextPos;
  2177. return cached.result;
  2178. }
  2179. s0 = peg$currPos;
  2180. if (input.charCodeAt(peg$currPos) === 94) {
  2181. s1 = peg$c84;
  2182. peg$currPos++;
  2183. } else {
  2184. s1 = peg$FAILED;
  2185. if (peg$silentFails === 0) { peg$fail(peg$c85); }
  2186. }
  2187. if (s1 !== peg$FAILED) {
  2188. s2 = peg$parsews();
  2189. if (s2 !== peg$FAILED) {
  2190. s3 = peg$parseexpression();
  2191. if (s3 !== peg$FAILED) {
  2192. peg$savedPos = s0;
  2193. s1 = peg$c86(s3);
  2194. s0 = s1;
  2195. } else {
  2196. peg$currPos = s0;
  2197. s0 = peg$FAILED;
  2198. }
  2199. } else {
  2200. peg$currPos = s0;
  2201. s0 = peg$FAILED;
  2202. }
  2203. } else {
  2204. peg$currPos = s0;
  2205. s0 = peg$FAILED;
  2206. }
  2207. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2208. return s0;
  2209. }
  2210. function peg$parsetemps() {
  2211. var s0, s1, s2, s3, s4, s5;
  2212. var key = peg$currPos * 66 + 39,
  2213. cached = peg$resultsCache[key];
  2214. if (cached) {
  2215. peg$currPos = cached.nextPos;
  2216. return cached.result;
  2217. }
  2218. s0 = peg$currPos;
  2219. if (input.charCodeAt(peg$currPos) === 124) {
  2220. s1 = peg$c87;
  2221. peg$currPos++;
  2222. } else {
  2223. s1 = peg$FAILED;
  2224. if (peg$silentFails === 0) { peg$fail(peg$c88); }
  2225. }
  2226. if (s1 !== peg$FAILED) {
  2227. s2 = [];
  2228. s3 = peg$currPos;
  2229. s4 = peg$parsews();
  2230. if (s4 !== peg$FAILED) {
  2231. s5 = peg$parseidentifier();
  2232. if (s5 !== peg$FAILED) {
  2233. peg$savedPos = s3;
  2234. s4 = peg$c89(s5);
  2235. s3 = s4;
  2236. } else {
  2237. peg$currPos = s3;
  2238. s3 = peg$FAILED;
  2239. }
  2240. } else {
  2241. peg$currPos = s3;
  2242. s3 = peg$FAILED;
  2243. }
  2244. while (s3 !== peg$FAILED) {
  2245. s2.push(s3);
  2246. s3 = peg$currPos;
  2247. s4 = peg$parsews();
  2248. if (s4 !== peg$FAILED) {
  2249. s5 = peg$parseidentifier();
  2250. if (s5 !== peg$FAILED) {
  2251. peg$savedPos = s3;
  2252. s4 = peg$c89(s5);
  2253. s3 = s4;
  2254. } else {
  2255. peg$currPos = s3;
  2256. s3 = peg$FAILED;
  2257. }
  2258. } else {
  2259. peg$currPos = s3;
  2260. s3 = peg$FAILED;
  2261. }
  2262. }
  2263. if (s2 !== peg$FAILED) {
  2264. s3 = peg$parsews();
  2265. if (s3 !== peg$FAILED) {
  2266. if (input.charCodeAt(peg$currPos) === 124) {
  2267. s4 = peg$c87;
  2268. peg$currPos++;
  2269. } else {
  2270. s4 = peg$FAILED;
  2271. if (peg$silentFails === 0) { peg$fail(peg$c88); }
  2272. }
  2273. if (s4 !== peg$FAILED) {
  2274. peg$savedPos = s0;
  2275. s1 = peg$c90(s2);
  2276. s0 = s1;
  2277. } else {
  2278. peg$currPos = s0;
  2279. s0 = peg$FAILED;
  2280. }
  2281. } else {
  2282. peg$currPos = s0;
  2283. s0 = peg$FAILED;
  2284. }
  2285. } else {
  2286. peg$currPos = s0;
  2287. s0 = peg$FAILED;
  2288. }
  2289. } else {
  2290. peg$currPos = s0;
  2291. s0 = peg$FAILED;
  2292. }
  2293. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2294. return s0;
  2295. }
  2296. function peg$parsewsBlockParamList() {
  2297. var s0, s1, s2, s3, s4, s5, s6;
  2298. var key = peg$currPos * 66 + 40,
  2299. cached = peg$resultsCache[key];
  2300. if (cached) {
  2301. peg$currPos = cached.nextPos;
  2302. return cached.result;
  2303. }
  2304. s0 = peg$currPos;
  2305. s1 = [];
  2306. s2 = peg$currPos;
  2307. s3 = peg$parsews();
  2308. if (s3 !== peg$FAILED) {
  2309. if (input.charCodeAt(peg$currPos) === 58) {
  2310. s4 = peg$c12;
  2311. peg$currPos++;
  2312. } else {
  2313. s4 = peg$FAILED;
  2314. if (peg$silentFails === 0) { peg$fail(peg$c13); }
  2315. }
  2316. if (s4 !== peg$FAILED) {
  2317. s5 = peg$parsews();
  2318. if (s5 !== peg$FAILED) {
  2319. s6 = peg$parseidentifier();
  2320. if (s6 !== peg$FAILED) {
  2321. peg$savedPos = s2;
  2322. s3 = peg$c91(s6);
  2323. s2 = s3;
  2324. } else {
  2325. peg$currPos = s2;
  2326. s2 = peg$FAILED;
  2327. }
  2328. } else {
  2329. peg$currPos = s2;
  2330. s2 = peg$FAILED;
  2331. }
  2332. } else {
  2333. peg$currPos = s2;
  2334. s2 = peg$FAILED;
  2335. }
  2336. } else {
  2337. peg$currPos = s2;
  2338. s2 = peg$FAILED;
  2339. }
  2340. if (s2 !== peg$FAILED) {
  2341. while (s2 !== peg$FAILED) {
  2342. s1.push(s2);
  2343. s2 = peg$currPos;
  2344. s3 = peg$parsews();
  2345. if (s3 !== peg$FAILED) {
  2346. if (input.charCodeAt(peg$currPos) === 58) {
  2347. s4 = peg$c12;
  2348. peg$currPos++;
  2349. } else {
  2350. s4 = peg$FAILED;
  2351. if (peg$silentFails === 0) { peg$fail(peg$c13); }
  2352. }
  2353. if (s4 !== peg$FAILED) {
  2354. s5 = peg$parsews();
  2355. if (s5 !== peg$FAILED) {
  2356. s6 = peg$parseidentifier();
  2357. if (s6 !== peg$FAILED) {
  2358. peg$savedPos = s2;
  2359. s3 = peg$c91(s6);
  2360. s2 = s3;
  2361. } else {
  2362. peg$currPos = s2;
  2363. s2 = peg$FAILED;
  2364. }
  2365. } else {
  2366. peg$currPos = s2;
  2367. s2 = peg$FAILED;
  2368. }
  2369. } else {
  2370. peg$currPos = s2;
  2371. s2 = peg$FAILED;
  2372. }
  2373. } else {
  2374. peg$currPos = s2;
  2375. s2 = peg$FAILED;
  2376. }
  2377. }
  2378. } else {
  2379. s1 = peg$FAILED;
  2380. }
  2381. if (s1 !== peg$FAILED) {
  2382. s2 = peg$parsews();
  2383. if (s2 !== peg$FAILED) {
  2384. if (input.charCodeAt(peg$currPos) === 124) {
  2385. s3 = peg$c87;
  2386. peg$currPos++;
  2387. } else {
  2388. s3 = peg$FAILED;
  2389. if (peg$silentFails === 0) { peg$fail(peg$c88); }
  2390. }
  2391. if (s3 !== peg$FAILED) {
  2392. peg$savedPos = s0;
  2393. s1 = peg$c92(s1);
  2394. s0 = s1;
  2395. } else {
  2396. peg$currPos = s0;
  2397. s0 = peg$FAILED;
  2398. }
  2399. } else {
  2400. peg$currPos = s0;
  2401. s0 = peg$FAILED;
  2402. }
  2403. } else {
  2404. peg$currPos = s0;
  2405. s0 = peg$FAILED;
  2406. }
  2407. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2408. return s0;
  2409. }
  2410. function peg$parsesubexpression() {
  2411. var s0, s1, s2, s3, s4, s5;
  2412. var key = peg$currPos * 66 + 41,
  2413. cached = peg$resultsCache[key];
  2414. if (cached) {
  2415. peg$currPos = cached.nextPos;
  2416. return cached.result;
  2417. }
  2418. s0 = peg$currPos;
  2419. if (input.charCodeAt(peg$currPos) === 40) {
  2420. s1 = peg$c51;
  2421. peg$currPos++;
  2422. } else {
  2423. s1 = peg$FAILED;
  2424. if (peg$silentFails === 0) { peg$fail(peg$c52); }
  2425. }
  2426. if (s1 !== peg$FAILED) {
  2427. s2 = peg$parsews();
  2428. if (s2 !== peg$FAILED) {
  2429. s3 = peg$parseexpression();
  2430. if (s3 !== peg$FAILED) {
  2431. s4 = peg$parsews();
  2432. if (s4 !== peg$FAILED) {
  2433. if (input.charCodeAt(peg$currPos) === 41) {
  2434. s5 = peg$c48;
  2435. peg$currPos++;
  2436. } else {
  2437. s5 = peg$FAILED;
  2438. if (peg$silentFails === 0) { peg$fail(peg$c49); }
  2439. }
  2440. if (s5 !== peg$FAILED) {
  2441. peg$savedPos = s0;
  2442. s1 = peg$c79(s3);
  2443. s0 = s1;
  2444. } else {
  2445. peg$currPos = s0;
  2446. s0 = peg$FAILED;
  2447. }
  2448. } else {
  2449. peg$currPos = s0;
  2450. s0 = peg$FAILED;
  2451. }
  2452. } else {
  2453. peg$currPos = s0;
  2454. s0 = peg$FAILED;
  2455. }
  2456. } else {
  2457. peg$currPos = s0;
  2458. s0 = peg$FAILED;
  2459. }
  2460. } else {
  2461. peg$currPos = s0;
  2462. s0 = peg$FAILED;
  2463. }
  2464. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2465. return s0;
  2466. }
  2467. function peg$parsewsStatementsWs() {
  2468. var s0, s1, s2, s3, s4, s5, s6;
  2469. var key = peg$currPos * 66 + 42,
  2470. cached = peg$resultsCache[key];
  2471. if (cached) {
  2472. peg$currPos = cached.nextPos;
  2473. return cached.result;
  2474. }
  2475. s0 = peg$currPos;
  2476. s1 = peg$parsemaybeDotsWs();
  2477. if (s1 !== peg$FAILED) {
  2478. s2 = peg$parseret();
  2479. if (s2 !== peg$FAILED) {
  2480. s3 = peg$parsemaybeDotsWs();
  2481. if (s3 !== peg$FAILED) {
  2482. peg$savedPos = s0;
  2483. s1 = peg$c93(s2);
  2484. s0 = s1;
  2485. } else {
  2486. peg$currPos = s0;
  2487. s0 = peg$FAILED;
  2488. }
  2489. } else {
  2490. peg$currPos = s0;
  2491. s0 = peg$FAILED;
  2492. }
  2493. } else {
  2494. peg$currPos = s0;
  2495. s0 = peg$FAILED;
  2496. }
  2497. if (s0 === peg$FAILED) {
  2498. s0 = peg$currPos;
  2499. s1 = peg$parsewsExpressions();
  2500. if (s1 !== peg$FAILED) {
  2501. s2 = peg$parsews();
  2502. if (s2 !== peg$FAILED) {
  2503. if (input.charCodeAt(peg$currPos) === 46) {
  2504. s3 = peg$c6;
  2505. peg$currPos++;
  2506. } else {
  2507. s3 = peg$FAILED;
  2508. if (peg$silentFails === 0) { peg$fail(peg$c7); }
  2509. }
  2510. if (s3 !== peg$FAILED) {
  2511. s4 = peg$parsemaybeDotsWs();
  2512. if (s4 !== peg$FAILED) {
  2513. s5 = peg$parseret();
  2514. if (s5 !== peg$FAILED) {
  2515. s6 = peg$parsemaybeDotsWs();
  2516. if (s6 !== peg$FAILED) {
  2517. peg$savedPos = s0;
  2518. s1 = peg$c94(s1, s5);
  2519. s0 = s1;
  2520. } else {
  2521. peg$currPos = s0;
  2522. s0 = peg$FAILED;
  2523. }
  2524. } else {
  2525. peg$currPos = s0;
  2526. s0 = peg$FAILED;
  2527. }
  2528. } else {
  2529. peg$currPos = s0;
  2530. s0 = peg$FAILED;
  2531. }
  2532. } else {
  2533. peg$currPos = s0;
  2534. s0 = peg$FAILED;
  2535. }
  2536. } else {
  2537. peg$currPos = s0;
  2538. s0 = peg$FAILED;
  2539. }
  2540. } else {
  2541. peg$currPos = s0;
  2542. s0 = peg$FAILED;
  2543. }
  2544. if (s0 === peg$FAILED) {
  2545. s0 = peg$currPos;
  2546. s1 = peg$parsewsExpressions();
  2547. if (s1 === peg$FAILED) {
  2548. s1 = null;
  2549. }
  2550. if (s1 !== peg$FAILED) {
  2551. s2 = peg$parsemaybeDotsWs();
  2552. if (s2 !== peg$FAILED) {
  2553. peg$savedPos = s0;
  2554. s1 = peg$c95(s1);
  2555. s0 = s1;
  2556. } else {
  2557. peg$currPos = s0;
  2558. s0 = peg$FAILED;
  2559. }
  2560. } else {
  2561. peg$currPos = s0;
  2562. s0 = peg$FAILED;
  2563. }
  2564. }
  2565. }
  2566. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2567. return s0;
  2568. }
  2569. function peg$parsewsSequenceWs() {
  2570. var s0, s1, s2, s3;
  2571. var key = peg$currPos * 66 + 43,
  2572. cached = peg$resultsCache[key];
  2573. if (cached) {
  2574. peg$currPos = cached.nextPos;
  2575. return cached.result;
  2576. }
  2577. s0 = peg$currPos;
  2578. s1 = peg$parsews();
  2579. if (s1 !== peg$FAILED) {
  2580. s2 = peg$parsejsStatement();
  2581. if (s2 !== peg$FAILED) {
  2582. s3 = peg$parsews();
  2583. if (s3 !== peg$FAILED) {
  2584. peg$savedPos = s0;
  2585. s1 = peg$c96(s2);
  2586. s0 = s1;
  2587. } else {
  2588. peg$currPos = s0;
  2589. s0 = peg$FAILED;
  2590. }
  2591. } else {
  2592. peg$currPos = s0;
  2593. s0 = peg$FAILED;
  2594. }
  2595. } else {
  2596. peg$currPos = s0;
  2597. s0 = peg$FAILED;
  2598. }
  2599. if (s0 === peg$FAILED) {
  2600. s0 = peg$parsewsStSequenceWs();
  2601. }
  2602. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2603. return s0;
  2604. }
  2605. function peg$parsewsStSequenceWs() {
  2606. var s0, s1, s2, s3;
  2607. var key = peg$currPos * 66 + 44,
  2608. cached = peg$resultsCache[key];
  2609. if (cached) {
  2610. peg$currPos = cached.nextPos;
  2611. return cached.result;
  2612. }
  2613. s0 = peg$currPos;
  2614. s1 = peg$parsews();
  2615. if (s1 !== peg$FAILED) {
  2616. s2 = peg$parsetemps();
  2617. if (s2 === peg$FAILED) {
  2618. s2 = null;
  2619. }
  2620. if (s2 !== peg$FAILED) {
  2621. s3 = peg$parsewsStatementsWs();
  2622. if (s3 === peg$FAILED) {
  2623. s3 = null;
  2624. }
  2625. if (s3 !== peg$FAILED) {
  2626. peg$savedPos = s0;
  2627. s1 = peg$c97(s2, s3);
  2628. s0 = s1;
  2629. } else {
  2630. peg$currPos = s0;
  2631. s0 = peg$FAILED;
  2632. }
  2633. } else {
  2634. peg$currPos = s0;
  2635. s0 = peg$FAILED;
  2636. }
  2637. } else {
  2638. peg$currPos = s0;
  2639. s0 = peg$FAILED;
  2640. }
  2641. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2642. return s0;
  2643. }
  2644. function peg$parseblock() {
  2645. var s0, s1, s2, s3, s4;
  2646. var key = peg$currPos * 66 + 45,
  2647. cached = peg$resultsCache[key];
  2648. if (cached) {
  2649. peg$currPos = cached.nextPos;
  2650. return cached.result;
  2651. }
  2652. s0 = peg$currPos;
  2653. if (input.charCodeAt(peg$currPos) === 91) {
  2654. s1 = peg$c98;
  2655. peg$currPos++;
  2656. } else {
  2657. s1 = peg$FAILED;
  2658. if (peg$silentFails === 0) { peg$fail(peg$c99); }
  2659. }
  2660. if (s1 !== peg$FAILED) {
  2661. s2 = peg$parsewsBlockParamList();
  2662. if (s2 === peg$FAILED) {
  2663. s2 = null;
  2664. }
  2665. if (s2 !== peg$FAILED) {
  2666. s3 = peg$parsewsSequenceWs();
  2667. if (s3 !== peg$FAILED) {
  2668. if (input.charCodeAt(peg$currPos) === 93) {
  2669. s4 = peg$c100;
  2670. peg$currPos++;
  2671. } else {
  2672. s4 = peg$FAILED;
  2673. if (peg$silentFails === 0) { peg$fail(peg$c101); }
  2674. }
  2675. if (s4 !== peg$FAILED) {
  2676. peg$savedPos = s0;
  2677. s1 = peg$c102(s2, s3);
  2678. s0 = s1;
  2679. } else {
  2680. peg$currPos = s0;
  2681. s0 = peg$FAILED;
  2682. }
  2683. } else {
  2684. peg$currPos = s0;
  2685. s0 = peg$FAILED;
  2686. }
  2687. } else {
  2688. peg$currPos = s0;
  2689. s0 = peg$FAILED;
  2690. }
  2691. } else {
  2692. peg$currPos = s0;
  2693. s0 = peg$FAILED;
  2694. }
  2695. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2696. return s0;
  2697. }
  2698. function peg$parseoperand() {
  2699. var s0;
  2700. var key = peg$currPos * 66 + 46,
  2701. cached = peg$resultsCache[key];
  2702. if (cached) {
  2703. peg$currPos = cached.nextPos;
  2704. return cached.result;
  2705. }
  2706. s0 = peg$parseliteral();
  2707. if (s0 === peg$FAILED) {
  2708. s0 = peg$parsevariable();
  2709. if (s0 === peg$FAILED) {
  2710. s0 = peg$parsesubexpression();
  2711. }
  2712. }
  2713. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2714. return s0;
  2715. }
  2716. function peg$parsewsUnaryMessage() {
  2717. var s0, s1, s2, s3, s4;
  2718. var key = peg$currPos * 66 + 47,
  2719. cached = peg$resultsCache[key];
  2720. if (cached) {
  2721. peg$currPos = cached.nextPos;
  2722. return cached.result;
  2723. }
  2724. s0 = peg$currPos;
  2725. s1 = peg$parsews();
  2726. if (s1 !== peg$FAILED) {
  2727. s2 = peg$parseidentifier();
  2728. if (s2 !== peg$FAILED) {
  2729. s3 = peg$currPos;
  2730. peg$silentFails++;
  2731. if (input.charCodeAt(peg$currPos) === 58) {
  2732. s4 = peg$c12;
  2733. peg$currPos++;
  2734. } else {
  2735. s4 = peg$FAILED;
  2736. if (peg$silentFails === 0) { peg$fail(peg$c13); }
  2737. }
  2738. peg$silentFails--;
  2739. if (s4 === peg$FAILED) {
  2740. s3 = void 0;
  2741. } else {
  2742. peg$currPos = s3;
  2743. s3 = peg$FAILED;
  2744. }
  2745. if (s3 !== peg$FAILED) {
  2746. peg$savedPos = s0;
  2747. s1 = peg$c103(s2);
  2748. s0 = s1;
  2749. } else {
  2750. peg$currPos = s0;
  2751. s0 = peg$FAILED;
  2752. }
  2753. } else {
  2754. peg$currPos = s0;
  2755. s0 = peg$FAILED;
  2756. }
  2757. } else {
  2758. peg$currPos = s0;
  2759. s0 = peg$FAILED;
  2760. }
  2761. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2762. return s0;
  2763. }
  2764. function peg$parseunarySend() {
  2765. var s0, s1, s2, s3;
  2766. var key = peg$currPos * 66 + 48,
  2767. cached = peg$resultsCache[key];
  2768. if (cached) {
  2769. peg$currPos = cached.nextPos;
  2770. return cached.result;
  2771. }
  2772. s0 = peg$currPos;
  2773. s1 = peg$parseoperand();
  2774. if (s1 !== peg$FAILED) {
  2775. s2 = [];
  2776. s3 = peg$parsewsUnaryMessage();
  2777. while (s3 !== peg$FAILED) {
  2778. s2.push(s3);
  2779. s3 = peg$parsewsUnaryMessage();
  2780. }
  2781. if (s2 !== peg$FAILED) {
  2782. peg$savedPos = s0;
  2783. s1 = peg$c104(s1, s2);
  2784. s0 = s1;
  2785. } else {
  2786. peg$currPos = s0;
  2787. s0 = peg$FAILED;
  2788. }
  2789. } else {
  2790. peg$currPos = s0;
  2791. s0 = peg$FAILED;
  2792. }
  2793. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2794. return s0;
  2795. }
  2796. function peg$parsewsBinaryMessage() {
  2797. var s0, s1, s2, s3, s4;
  2798. var key = peg$currPos * 66 + 49,
  2799. cached = peg$resultsCache[key];
  2800. if (cached) {
  2801. peg$currPos = cached.nextPos;
  2802. return cached.result;
  2803. }
  2804. s0 = peg$currPos;
  2805. s1 = peg$parsews();
  2806. if (s1 !== peg$FAILED) {
  2807. s2 = peg$parsebinarySelector();
  2808. if (s2 !== peg$FAILED) {
  2809. s3 = peg$parsews();
  2810. if (s3 !== peg$FAILED) {
  2811. s4 = peg$parseunarySend();
  2812. if (s4 !== peg$FAILED) {
  2813. peg$savedPos = s0;
  2814. s1 = peg$c105(s2, s4);
  2815. s0 = s1;
  2816. } else {
  2817. peg$currPos = s0;
  2818. s0 = peg$FAILED;
  2819. }
  2820. } else {
  2821. peg$currPos = s0;
  2822. s0 = peg$FAILED;
  2823. }
  2824. } else {
  2825. peg$currPos = s0;
  2826. s0 = peg$FAILED;
  2827. }
  2828. } else {
  2829. peg$currPos = s0;
  2830. s0 = peg$FAILED;
  2831. }
  2832. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2833. return s0;
  2834. }
  2835. function peg$parsebinarySend() {
  2836. var s0, s1, s2, s3;
  2837. var key = peg$currPos * 66 + 50,
  2838. cached = peg$resultsCache[key];
  2839. if (cached) {
  2840. peg$currPos = cached.nextPos;
  2841. return cached.result;
  2842. }
  2843. s0 = peg$currPos;
  2844. s1 = peg$parseunarySend();
  2845. if (s1 !== peg$FAILED) {
  2846. s2 = [];
  2847. s3 = peg$parsewsBinaryMessage();
  2848. while (s3 !== peg$FAILED) {
  2849. s2.push(s3);
  2850. s3 = peg$parsewsBinaryMessage();
  2851. }
  2852. if (s2 !== peg$FAILED) {
  2853. peg$savedPos = s0;
  2854. s1 = peg$c104(s1, s2);
  2855. s0 = s1;
  2856. } else {
  2857. peg$currPos = s0;
  2858. s0 = peg$FAILED;
  2859. }
  2860. } else {
  2861. peg$currPos = s0;
  2862. s0 = peg$FAILED;
  2863. }
  2864. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2865. return s0;
  2866. }
  2867. function peg$parsewsKeywordMessage() {
  2868. var s0, s1, s2, s3, s4, s5, s6;
  2869. var key = peg$currPos * 66 + 51,
  2870. cached = peg$resultsCache[key];
  2871. if (cached) {
  2872. peg$currPos = cached.nextPos;
  2873. return cached.result;
  2874. }
  2875. s0 = peg$currPos;
  2876. s1 = [];
  2877. s2 = peg$currPos;
  2878. s3 = peg$parsews();
  2879. if (s3 !== peg$FAILED) {
  2880. s4 = peg$parsekeyword();
  2881. if (s4 !== peg$FAILED) {
  2882. s5 = peg$parsews();
  2883. if (s5 !== peg$FAILED) {
  2884. s6 = peg$parsebinarySend();
  2885. if (s6 !== peg$FAILED) {
  2886. peg$savedPos = s2;
  2887. s3 = peg$c75(s4, s6);
  2888. s2 = s3;
  2889. } else {
  2890. peg$currPos = s2;
  2891. s2 = peg$FAILED;
  2892. }
  2893. } else {
  2894. peg$currPos = s2;
  2895. s2 = peg$FAILED;
  2896. }
  2897. } else {
  2898. peg$currPos = s2;
  2899. s2 = peg$FAILED;
  2900. }
  2901. } else {
  2902. peg$currPos = s2;
  2903. s2 = peg$FAILED;
  2904. }
  2905. if (s2 !== peg$FAILED) {
  2906. while (s2 !== peg$FAILED) {
  2907. s1.push(s2);
  2908. s2 = peg$currPos;
  2909. s3 = peg$parsews();
  2910. if (s3 !== peg$FAILED) {
  2911. s4 = peg$parsekeyword();
  2912. if (s4 !== peg$FAILED) {
  2913. s5 = peg$parsews();
  2914. if (s5 !== peg$FAILED) {
  2915. s6 = peg$parsebinarySend();
  2916. if (s6 !== peg$FAILED) {
  2917. peg$savedPos = s2;
  2918. s3 = peg$c75(s4, s6);
  2919. s2 = s3;
  2920. } else {
  2921. peg$currPos = s2;
  2922. s2 = peg$FAILED;
  2923. }
  2924. } else {
  2925. peg$currPos = s2;
  2926. s2 = peg$FAILED;
  2927. }
  2928. } else {
  2929. peg$currPos = s2;
  2930. s2 = peg$FAILED;
  2931. }
  2932. } else {
  2933. peg$currPos = s2;
  2934. s2 = peg$FAILED;
  2935. }
  2936. }
  2937. } else {
  2938. s1 = peg$FAILED;
  2939. }
  2940. if (s1 !== peg$FAILED) {
  2941. peg$savedPos = s0;
  2942. s1 = peg$c106(s1);
  2943. }
  2944. s0 = s1;
  2945. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2946. return s0;
  2947. }
  2948. function peg$parsekeywordSend() {
  2949. var s0, s1, s2;
  2950. var key = peg$currPos * 66 + 52,
  2951. cached = peg$resultsCache[key];
  2952. if (cached) {
  2953. peg$currPos = cached.nextPos;
  2954. return cached.result;
  2955. }
  2956. s0 = peg$currPos;
  2957. s1 = peg$parsebinarySend();
  2958. if (s1 !== peg$FAILED) {
  2959. s2 = peg$parsewsKeywordMessage();
  2960. if (s2 === peg$FAILED) {
  2961. s2 = null;
  2962. }
  2963. if (s2 !== peg$FAILED) {
  2964. peg$savedPos = s0;
  2965. s1 = peg$c107(s1, s2);
  2966. s0 = s1;
  2967. } else {
  2968. peg$currPos = s0;
  2969. s0 = peg$FAILED;
  2970. }
  2971. } else {
  2972. peg$currPos = s0;
  2973. s0 = peg$FAILED;
  2974. }
  2975. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2976. return s0;
  2977. }
  2978. function peg$parsewsMessage() {
  2979. var s0;
  2980. var key = peg$currPos * 66 + 53,
  2981. cached = peg$resultsCache[key];
  2982. if (cached) {
  2983. peg$currPos = cached.nextPos;
  2984. return cached.result;
  2985. }
  2986. s0 = peg$parsewsBinaryMessage();
  2987. if (s0 === peg$FAILED) {
  2988. s0 = peg$parsewsUnaryMessage();
  2989. if (s0 === peg$FAILED) {
  2990. s0 = peg$parsewsKeywordMessage();
  2991. }
  2992. }
  2993. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  2994. return s0;
  2995. }
  2996. function peg$parsecascade() {
  2997. var s0, s1, s2, s3, s4, s5, s6, s7;
  2998. var key = peg$currPos * 66 + 54,
  2999. cached = peg$resultsCache[key];
  3000. if (cached) {
  3001. peg$currPos = cached.nextPos;
  3002. return cached.result;
  3003. }
  3004. s0 = peg$currPos;
  3005. s1 = peg$parsekeywordSend();
  3006. if (s1 !== peg$FAILED) {
  3007. peg$savedPos = peg$currPos;
  3008. s2 = peg$c108(s1);
  3009. if (s2) {
  3010. s2 = void 0;
  3011. } else {
  3012. s2 = peg$FAILED;
  3013. }
  3014. if (s2 !== peg$FAILED) {
  3015. s3 = [];
  3016. s4 = peg$currPos;
  3017. s5 = peg$parsews();
  3018. if (s5 !== peg$FAILED) {
  3019. if (input.charCodeAt(peg$currPos) === 59) {
  3020. s6 = peg$c109;
  3021. peg$currPos++;
  3022. } else {
  3023. s6 = peg$FAILED;
  3024. if (peg$silentFails === 0) { peg$fail(peg$c110); }
  3025. }
  3026. if (s6 !== peg$FAILED) {
  3027. s7 = peg$parsewsMessage();
  3028. if (s7 !== peg$FAILED) {
  3029. peg$savedPos = s4;
  3030. s5 = peg$c111(s1, s7);
  3031. s4 = s5;
  3032. } else {
  3033. peg$currPos = s4;
  3034. s4 = peg$FAILED;
  3035. }
  3036. } else {
  3037. peg$currPos = s4;
  3038. s4 = peg$FAILED;
  3039. }
  3040. } else {
  3041. peg$currPos = s4;
  3042. s4 = peg$FAILED;
  3043. }
  3044. if (s4 !== peg$FAILED) {
  3045. while (s4 !== peg$FAILED) {
  3046. s3.push(s4);
  3047. s4 = peg$currPos;
  3048. s5 = peg$parsews();
  3049. if (s5 !== peg$FAILED) {
  3050. if (input.charCodeAt(peg$currPos) === 59) {
  3051. s6 = peg$c109;
  3052. peg$currPos++;
  3053. } else {
  3054. s6 = peg$FAILED;
  3055. if (peg$silentFails === 0) { peg$fail(peg$c110); }
  3056. }
  3057. if (s6 !== peg$FAILED) {
  3058. s7 = peg$parsewsMessage();
  3059. if (s7 !== peg$FAILED) {
  3060. peg$savedPos = s4;
  3061. s5 = peg$c111(s1, s7);
  3062. s4 = s5;
  3063. } else {
  3064. peg$currPos = s4;
  3065. s4 = peg$FAILED;
  3066. }
  3067. } else {
  3068. peg$currPos = s4;
  3069. s4 = peg$FAILED;
  3070. }
  3071. } else {
  3072. peg$currPos = s4;
  3073. s4 = peg$FAILED;
  3074. }
  3075. }
  3076. } else {
  3077. s3 = peg$FAILED;
  3078. }
  3079. if (s3 !== peg$FAILED) {
  3080. peg$savedPos = s0;
  3081. s1 = peg$c112(s1, s3);
  3082. s0 = s1;
  3083. } else {
  3084. peg$currPos = s0;
  3085. s0 = peg$FAILED;
  3086. }
  3087. } else {
  3088. peg$currPos = s0;
  3089. s0 = peg$FAILED;
  3090. }
  3091. } else {
  3092. peg$currPos = s0;
  3093. s0 = peg$FAILED;
  3094. }
  3095. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3096. return s0;
  3097. }
  3098. function peg$parsewsOperand() {
  3099. var s0, s1, s2;
  3100. var key = peg$currPos * 66 + 55,
  3101. cached = peg$resultsCache[key];
  3102. if (cached) {
  3103. peg$currPos = cached.nextPos;
  3104. return cached.result;
  3105. }
  3106. s0 = peg$currPos;
  3107. s1 = peg$parsews();
  3108. if (s1 !== peg$FAILED) {
  3109. s2 = peg$parseoperand();
  3110. if (s2 !== peg$FAILED) {
  3111. peg$savedPos = s0;
  3112. s1 = peg$c113(s2);
  3113. s0 = s1;
  3114. } else {
  3115. peg$currPos = s0;
  3116. s0 = peg$FAILED;
  3117. }
  3118. } else {
  3119. peg$currPos = s0;
  3120. s0 = peg$FAILED;
  3121. }
  3122. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3123. return s0;
  3124. }
  3125. function peg$parsewsValueAttrDef() {
  3126. var s0, s1, s2, s3, s4, s5;
  3127. var key = peg$currPos * 66 + 56,
  3128. cached = peg$resultsCache[key];
  3129. if (cached) {
  3130. peg$currPos = cached.nextPos;
  3131. return cached.result;
  3132. }
  3133. s0 = peg$currPos;
  3134. s1 = peg$parsews();
  3135. if (s1 !== peg$FAILED) {
  3136. s2 = peg$parseidentifier();
  3137. if (s2 !== peg$FAILED) {
  3138. s3 = peg$parsews();
  3139. if (s3 !== peg$FAILED) {
  3140. if (input.charCodeAt(peg$currPos) === 61) {
  3141. s4 = peg$c114;
  3142. peg$currPos++;
  3143. } else {
  3144. s4 = peg$FAILED;
  3145. if (peg$silentFails === 0) { peg$fail(peg$c115); }
  3146. }
  3147. if (s4 !== peg$FAILED) {
  3148. s5 = peg$parsewsOperand();
  3149. if (s5 !== peg$FAILED) {
  3150. peg$savedPos = s0;
  3151. s1 = peg$c116(s2, s5);
  3152. s0 = s1;
  3153. } else {
  3154. peg$currPos = s0;
  3155. s0 = peg$FAILED;
  3156. }
  3157. } else {
  3158. peg$currPos = s0;
  3159. s0 = peg$FAILED;
  3160. }
  3161. } else {
  3162. peg$currPos = s0;
  3163. s0 = peg$FAILED;
  3164. }
  3165. } else {
  3166. peg$currPos = s0;
  3167. s0 = peg$FAILED;
  3168. }
  3169. } else {
  3170. peg$currPos = s0;
  3171. s0 = peg$FAILED;
  3172. }
  3173. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3174. return s0;
  3175. }
  3176. function peg$parsewsAttrDef() {
  3177. var s0;
  3178. var key = peg$currPos * 66 + 57,
  3179. cached = peg$resultsCache[key];
  3180. if (cached) {
  3181. peg$currPos = cached.nextPos;
  3182. return cached.result;
  3183. }
  3184. s0 = peg$parsewsValueAttrDef();
  3185. if (s0 === peg$FAILED) {
  3186. s0 = peg$parsewsUnaryMessage();
  3187. }
  3188. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3189. return s0;
  3190. }
  3191. function peg$parsestrom() {
  3192. var s0, s1, s2, s3, s4, s5, s6, s7, s8;
  3193. var key = peg$currPos * 66 + 58,
  3194. cached = peg$resultsCache[key];
  3195. if (cached) {
  3196. peg$currPos = cached.nextPos;
  3197. return cached.result;
  3198. }
  3199. s0 = peg$currPos;
  3200. if (input.charCodeAt(peg$currPos) === 60) {
  3201. s1 = peg$c117;
  3202. peg$currPos++;
  3203. } else {
  3204. s1 = peg$FAILED;
  3205. if (peg$silentFails === 0) { peg$fail(peg$c118); }
  3206. }
  3207. if (s1 !== peg$FAILED) {
  3208. s2 = peg$parsewsOperand();
  3209. if (s2 !== peg$FAILED) {
  3210. s3 = [];
  3211. s4 = peg$parsewsAttrDef();
  3212. while (s4 !== peg$FAILED) {
  3213. s3.push(s4);
  3214. s4 = peg$parsewsAttrDef();
  3215. }
  3216. if (s3 !== peg$FAILED) {
  3217. s4 = peg$currPos;
  3218. s5 = peg$parsews();
  3219. if (s5 !== peg$FAILED) {
  3220. if (input.charCodeAt(peg$currPos) === 124) {
  3221. s6 = peg$c87;
  3222. peg$currPos++;
  3223. } else {
  3224. s6 = peg$FAILED;
  3225. if (peg$silentFails === 0) { peg$fail(peg$c88); }
  3226. }
  3227. if (s6 !== peg$FAILED) {
  3228. s7 = [];
  3229. s8 = peg$parsewsOperand();
  3230. while (s8 !== peg$FAILED) {
  3231. s7.push(s8);
  3232. s8 = peg$parsewsOperand();
  3233. }
  3234. if (s7 !== peg$FAILED) {
  3235. peg$savedPos = s4;
  3236. s5 = peg$c119(s2, s3, s7);
  3237. s4 = s5;
  3238. } else {
  3239. peg$currPos = s4;
  3240. s4 = peg$FAILED;
  3241. }
  3242. } else {
  3243. peg$currPos = s4;
  3244. s4 = peg$FAILED;
  3245. }
  3246. } else {
  3247. peg$currPos = s4;
  3248. s4 = peg$FAILED;
  3249. }
  3250. if (s4 === peg$FAILED) {
  3251. s4 = null;
  3252. }
  3253. if (s4 !== peg$FAILED) {
  3254. s5 = peg$parsews();
  3255. if (s5 !== peg$FAILED) {
  3256. if (input.charCodeAt(peg$currPos) === 62) {
  3257. s6 = peg$c120;
  3258. peg$currPos++;
  3259. } else {
  3260. s6 = peg$FAILED;
  3261. if (peg$silentFails === 0) { peg$fail(peg$c121); }
  3262. }
  3263. if (s6 !== peg$FAILED) {
  3264. peg$savedPos = s0;
  3265. s1 = peg$c122(s2, s3, s4);
  3266. s0 = s1;
  3267. } else {
  3268. peg$currPos = s0;
  3269. s0 = peg$FAILED;
  3270. }
  3271. } else {
  3272. peg$currPos = s0;
  3273. s0 = peg$FAILED;
  3274. }
  3275. } else {
  3276. peg$currPos = s0;
  3277. s0 = peg$FAILED;
  3278. }
  3279. } else {
  3280. peg$currPos = s0;
  3281. s0 = peg$FAILED;
  3282. }
  3283. } else {
  3284. peg$currPos = s0;
  3285. s0 = peg$FAILED;
  3286. }
  3287. } else {
  3288. peg$currPos = s0;
  3289. s0 = peg$FAILED;
  3290. }
  3291. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3292. return s0;
  3293. }
  3294. function peg$parsejsStatement() {
  3295. var s0;
  3296. var key = peg$currPos * 66 + 59,
  3297. cached = peg$resultsCache[key];
  3298. if (cached) {
  3299. peg$currPos = cached.nextPos;
  3300. return cached.result;
  3301. }
  3302. s0 = peg$parsepragmaJsStatement();
  3303. if (s0 === peg$FAILED) {
  3304. s0 = peg$parselegacyJsStatement();
  3305. }
  3306. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3307. return s0;
  3308. }
  3309. function peg$parselegacyJsStatement() {
  3310. var s0, s1, s2, s3, s4;
  3311. var key = peg$currPos * 66 + 60,
  3312. cached = peg$resultsCache[key];
  3313. if (cached) {
  3314. peg$currPos = cached.nextPos;
  3315. return cached.result;
  3316. }
  3317. s0 = peg$currPos;
  3318. if (input.charCodeAt(peg$currPos) === 60) {
  3319. s1 = peg$c117;
  3320. peg$currPos++;
  3321. } else {
  3322. s1 = peg$FAILED;
  3323. if (peg$silentFails === 0) { peg$fail(peg$c118); }
  3324. }
  3325. if (s1 !== peg$FAILED) {
  3326. s2 = [];
  3327. s3 = peg$currPos;
  3328. if (input.substr(peg$currPos, 2) === peg$c123) {
  3329. s4 = peg$c123;
  3330. peg$currPos += 2;
  3331. } else {
  3332. s4 = peg$FAILED;
  3333. if (peg$silentFails === 0) { peg$fail(peg$c124); }
  3334. }
  3335. if (s4 !== peg$FAILED) {
  3336. peg$savedPos = s3;
  3337. s4 = peg$c125();
  3338. }
  3339. s3 = s4;
  3340. if (s3 === peg$FAILED) {
  3341. if (peg$c126.test(input.charAt(peg$currPos))) {
  3342. s3 = input.charAt(peg$currPos);
  3343. peg$currPos++;
  3344. } else {
  3345. s3 = peg$FAILED;
  3346. if (peg$silentFails === 0) { peg$fail(peg$c127); }
  3347. }
  3348. }
  3349. while (s3 !== peg$FAILED) {
  3350. s2.push(s3);
  3351. s3 = peg$currPos;
  3352. if (input.substr(peg$currPos, 2) === peg$c123) {
  3353. s4 = peg$c123;
  3354. peg$currPos += 2;
  3355. } else {
  3356. s4 = peg$FAILED;
  3357. if (peg$silentFails === 0) { peg$fail(peg$c124); }
  3358. }
  3359. if (s4 !== peg$FAILED) {
  3360. peg$savedPos = s3;
  3361. s4 = peg$c125();
  3362. }
  3363. s3 = s4;
  3364. if (s3 === peg$FAILED) {
  3365. if (peg$c126.test(input.charAt(peg$currPos))) {
  3366. s3 = input.charAt(peg$currPos);
  3367. peg$currPos++;
  3368. } else {
  3369. s3 = peg$FAILED;
  3370. if (peg$silentFails === 0) { peg$fail(peg$c127); }
  3371. }
  3372. }
  3373. }
  3374. if (s2 !== peg$FAILED) {
  3375. if (input.charCodeAt(peg$currPos) === 62) {
  3376. s3 = peg$c120;
  3377. peg$currPos++;
  3378. } else {
  3379. s3 = peg$FAILED;
  3380. if (peg$silentFails === 0) { peg$fail(peg$c121); }
  3381. }
  3382. if (s3 !== peg$FAILED) {
  3383. peg$savedPos = peg$currPos;
  3384. s4 = peg$c128(s2);
  3385. if (s4) {
  3386. s4 = void 0;
  3387. } else {
  3388. s4 = peg$FAILED;
  3389. }
  3390. if (s4 !== peg$FAILED) {
  3391. peg$savedPos = s0;
  3392. s1 = peg$c129(s2);
  3393. s0 = s1;
  3394. } else {
  3395. peg$currPos = s0;
  3396. s0 = peg$FAILED;
  3397. }
  3398. } else {
  3399. peg$currPos = s0;
  3400. s0 = peg$FAILED;
  3401. }
  3402. } else {
  3403. peg$currPos = s0;
  3404. s0 = peg$FAILED;
  3405. }
  3406. } else {
  3407. peg$currPos = s0;
  3408. s0 = peg$FAILED;
  3409. }
  3410. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3411. return s0;
  3412. }
  3413. function peg$parsepragmaJsStatement() {
  3414. var s0, s1, s2, s3, s4, s5, s6, s7;
  3415. var key = peg$currPos * 66 + 61,
  3416. cached = peg$resultsCache[key];
  3417. if (cached) {
  3418. peg$currPos = cached.nextPos;
  3419. return cached.result;
  3420. }
  3421. s0 = peg$currPos;
  3422. if (input.charCodeAt(peg$currPos) === 60) {
  3423. s1 = peg$c117;
  3424. peg$currPos++;
  3425. } else {
  3426. s1 = peg$FAILED;
  3427. if (peg$silentFails === 0) { peg$fail(peg$c118); }
  3428. }
  3429. if (s1 !== peg$FAILED) {
  3430. s2 = peg$parsews();
  3431. if (s2 !== peg$FAILED) {
  3432. if (input.substr(peg$currPos, 9) === peg$c130) {
  3433. s3 = peg$c130;
  3434. peg$currPos += 9;
  3435. } else {
  3436. s3 = peg$FAILED;
  3437. if (peg$silentFails === 0) { peg$fail(peg$c131); }
  3438. }
  3439. if (s3 !== peg$FAILED) {
  3440. s4 = peg$parsews();
  3441. if (s4 !== peg$FAILED) {
  3442. s5 = peg$parserawString();
  3443. if (s5 !== peg$FAILED) {
  3444. s6 = peg$parsews();
  3445. if (s6 !== peg$FAILED) {
  3446. if (input.charCodeAt(peg$currPos) === 62) {
  3447. s7 = peg$c120;
  3448. peg$currPos++;
  3449. } else {
  3450. s7 = peg$FAILED;
  3451. if (peg$silentFails === 0) { peg$fail(peg$c121); }
  3452. }
  3453. if (s7 !== peg$FAILED) {
  3454. peg$savedPos = s0;
  3455. s1 = peg$c132(s5);
  3456. s0 = s1;
  3457. } else {
  3458. peg$currPos = s0;
  3459. s0 = peg$FAILED;
  3460. }
  3461. } else {
  3462. peg$currPos = s0;
  3463. s0 = peg$FAILED;
  3464. }
  3465. } else {
  3466. peg$currPos = s0;
  3467. s0 = peg$FAILED;
  3468. }
  3469. } else {
  3470. peg$currPos = s0;
  3471. s0 = peg$FAILED;
  3472. }
  3473. } else {
  3474. peg$currPos = s0;
  3475. s0 = peg$FAILED;
  3476. }
  3477. } else {
  3478. peg$currPos = s0;
  3479. s0 = peg$FAILED;
  3480. }
  3481. } else {
  3482. peg$currPos = s0;
  3483. s0 = peg$FAILED;
  3484. }
  3485. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3486. return s0;
  3487. }
  3488. function peg$parsemethod() {
  3489. var s0, s1, s2;
  3490. var key = peg$currPos * 66 + 62,
  3491. cached = peg$resultsCache[key];
  3492. if (cached) {
  3493. peg$currPos = cached.nextPos;
  3494. return cached.result;
  3495. }
  3496. s0 = peg$currPos;
  3497. s1 = peg$parsewsKeywordPattern();
  3498. if (s1 === peg$FAILED) {
  3499. s1 = peg$parsewsBinaryPattern();
  3500. if (s1 === peg$FAILED) {
  3501. s1 = peg$parsewsUnaryPattern();
  3502. }
  3503. }
  3504. if (s1 !== peg$FAILED) {
  3505. s2 = peg$parsewsSequenceWs();
  3506. if (s2 !== peg$FAILED) {
  3507. peg$savedPos = s0;
  3508. s1 = peg$c133(s1, s2);
  3509. s0 = s1;
  3510. } else {
  3511. peg$currPos = s0;
  3512. s0 = peg$FAILED;
  3513. }
  3514. } else {
  3515. peg$currPos = s0;
  3516. s0 = peg$FAILED;
  3517. }
  3518. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3519. return s0;
  3520. }
  3521. function peg$parseassociationSend() {
  3522. var s0, s1, s2;
  3523. var key = peg$currPos * 66 + 63,
  3524. cached = peg$resultsCache[key];
  3525. if (cached) {
  3526. peg$currPos = cached.nextPos;
  3527. return cached.result;
  3528. }
  3529. s0 = peg$currPos;
  3530. s1 = peg$parsebinarySend();
  3531. if (s1 !== peg$FAILED) {
  3532. peg$savedPos = peg$currPos;
  3533. s2 = peg$c134(s1);
  3534. if (s2) {
  3535. s2 = void 0;
  3536. } else {
  3537. s2 = peg$FAILED;
  3538. }
  3539. if (s2 !== peg$FAILED) {
  3540. peg$savedPos = s0;
  3541. s1 = peg$c135(s1);
  3542. s0 = s1;
  3543. } else {
  3544. peg$currPos = s0;
  3545. s0 = peg$FAILED;
  3546. }
  3547. } else {
  3548. peg$currPos = s0;
  3549. s0 = peg$FAILED;
  3550. }
  3551. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3552. return s0;
  3553. }
  3554. function peg$parsewsAssociationsRest() {
  3555. var s0, s1, s2, s3, s4;
  3556. var key = peg$currPos * 66 + 64,
  3557. cached = peg$resultsCache[key];
  3558. if (cached) {
  3559. peg$currPos = cached.nextPos;
  3560. return cached.result;
  3561. }
  3562. s0 = peg$currPos;
  3563. s1 = peg$parsews();
  3564. if (s1 !== peg$FAILED) {
  3565. if (input.charCodeAt(peg$currPos) === 46) {
  3566. s2 = peg$c6;
  3567. peg$currPos++;
  3568. } else {
  3569. s2 = peg$FAILED;
  3570. if (peg$silentFails === 0) { peg$fail(peg$c7); }
  3571. }
  3572. if (s2 !== peg$FAILED) {
  3573. s3 = peg$parsemaybeDotsWs();
  3574. if (s3 !== peg$FAILED) {
  3575. s4 = peg$parseassociationSend();
  3576. if (s4 !== peg$FAILED) {
  3577. peg$savedPos = s0;
  3578. s1 = peg$c79(s4);
  3579. s0 = s1;
  3580. } else {
  3581. peg$currPos = s0;
  3582. s0 = peg$FAILED;
  3583. }
  3584. } else {
  3585. peg$currPos = s0;
  3586. s0 = peg$FAILED;
  3587. }
  3588. } else {
  3589. peg$currPos = s0;
  3590. s0 = peg$FAILED;
  3591. }
  3592. } else {
  3593. peg$currPos = s0;
  3594. s0 = peg$FAILED;
  3595. }
  3596. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3597. return s0;
  3598. }
  3599. function peg$parsewsAssociations() {
  3600. var s0, s1, s2, s3, s4;
  3601. var key = peg$currPos * 66 + 65,
  3602. cached = peg$resultsCache[key];
  3603. if (cached) {
  3604. peg$currPos = cached.nextPos;
  3605. return cached.result;
  3606. }
  3607. s0 = peg$currPos;
  3608. s1 = peg$parsemaybeDotsWs();
  3609. if (s1 !== peg$FAILED) {
  3610. s2 = peg$parseassociationSend();
  3611. if (s2 !== peg$FAILED) {
  3612. s3 = [];
  3613. s4 = peg$parsewsAssociationsRest();
  3614. while (s4 !== peg$FAILED) {
  3615. s3.push(s4);
  3616. s4 = peg$parsewsAssociationsRest();
  3617. }
  3618. if (s3 !== peg$FAILED) {
  3619. peg$savedPos = s0;
  3620. s1 = peg$c136(s2, s3);
  3621. s0 = s1;
  3622. } else {
  3623. peg$currPos = s0;
  3624. s0 = peg$FAILED;
  3625. }
  3626. } else {
  3627. peg$currPos = s0;
  3628. s0 = peg$FAILED;
  3629. }
  3630. } else {
  3631. peg$currPos = s0;
  3632. s0 = peg$FAILED;
  3633. }
  3634. peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
  3635. return s0;
  3636. }
  3637. peg$result = peg$startRuleFunction();
  3638. if (peg$result !== peg$FAILED && peg$currPos === input.length) {
  3639. return peg$result;
  3640. } else {
  3641. if (peg$result !== peg$FAILED && peg$currPos < input.length) {
  3642. peg$fail({ type: "end", description: "end of input" });
  3643. }
  3644. throw peg$buildException(
  3645. null,
  3646. peg$maxFailExpected,
  3647. peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,
  3648. peg$maxFailPos < input.length
  3649. ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)
  3650. : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
  3651. );
  3652. }
  3653. }
  3654. return {
  3655. SyntaxError: peg$SyntaxError,
  3656. parse: peg$parse
  3657. };
  3658. })();
  3659. });