1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999 |
- // $ANTLR 3.2 Sep 23, 2009 12:02:23 C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g 2009-11-11 17:56:42
-
- using Unity.VisualScripting.Antlr3.Runtime;
-
- namespace Unity.VisualScripting.Dependencies.NCalc
- {
- public class NCalcLexer : Lexer
- {
- // delegates
- // delegators
-
- public NCalcLexer()
- {
- InitializeCyclicDFAs();
- }
-
- public NCalcLexer(ICharStream input)
- : this(input, null) { }
-
- public NCalcLexer(ICharStream input, RecognizerSharedState state)
- : base(input, state)
- {
- InitializeCyclicDFAs();
- }
-
- protected DFA7 dfa7;
- protected DFA14 dfa14;
-
- override public string GrammarFileName
- {
- get
- {
- return "C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g";
- }
- }
-
- private void InitializeCyclicDFAs()
- {
- dfa7 = new DFA7(this);
- dfa14 = new DFA14(this);
- }
-
- // $ANTLR start "T__19"
- public void mT__19() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__19;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:7:7: ( '?' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:7:9: '?'
- {
- Match('?');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public void mT__20() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__20;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:8:7: ( ':' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:8:9: ':'
- {
- Match(':');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public void mT__21() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__21;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:9:7: ( '||' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:9:9: '||'
- {
- Match("||");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public void mT__22() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__22;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:10:7: ( 'or' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:10:9: 'or'
- {
- Match("or");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public void mT__23() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__23;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:11:7: ( '&&' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:11:9: '&&'
- {
- Match("&&");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public void mT__24() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__24;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:12:7: ( 'and' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:12:9: 'and'
- {
- Match("and");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public void mT__25() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__25;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:13:7: ( '|' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:13:9: '|'
- {
- Match('|');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public void mT__26() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__26;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:14:7: ( '^' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:14:9: '^'
- {
- Match('^');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public void mT__27() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__27;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:15:7: ( '&' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:15:9: '&'
- {
- Match('&');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public void mT__28() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__28;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:16:7: ( '==' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:16:9: '=='
- {
- Match("==");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public void mT__29() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__29;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:17:7: ( '=' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:17:9: '='
- {
- Match('=');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public void mT__30() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__30;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:18:7: ( '!=' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:18:9: '!='
- {
- Match("!=");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public void mT__31() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__31;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:19:7: ( '<>' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:19:9: '<>'
- {
- Match("<>");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public void mT__32() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__32;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:20:7: ( '<' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:20:9: '<'
- {
- Match('<');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public void mT__33() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__33;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:21:7: ( '<=' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:21:9: '<='
- {
- Match("<=");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public void mT__34() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__34;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:22:7: ( '>' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:22:9: '>'
- {
- Match('>');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public void mT__35() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__35;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:23:7: ( '>=' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:23:9: '>='
- {
- Match(">=");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public void mT__36() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__36;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:24:7: ( '<<' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:24:9: '<<'
- {
- Match("<<");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public void mT__37() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__37;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:25:7: ( '>>' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:25:9: '>>'
- {
- Match(">>");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public void mT__38() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__38;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:26:7: ( '+' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:26:9: '+'
- {
- Match('+');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__38"
-
- // $ANTLR start "T__39"
- public void mT__39() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__39;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:27:7: ( '-' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:27:9: '-'
- {
- Match('-');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__39"
-
- // $ANTLR start "T__40"
- public void mT__40() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__40;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:28:7: ( '*' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:28:9: '*'
- {
- Match('*');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__40"
-
- // $ANTLR start "T__41"
- public void mT__41() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__41;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:29:7: ( '/' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:29:9: '/'
- {
- Match('/');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__41"
-
- // $ANTLR start "T__42"
- public void mT__42() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__42;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:30:7: ( '%' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:30:9: '%'
- {
- Match('%');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__42"
-
- // $ANTLR start "T__43"
- public void mT__43() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__43;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:31:7: ( '!' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:31:9: '!'
- {
- Match('!');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__43"
-
- // $ANTLR start "T__44"
- public void mT__44() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__44;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:32:7: ( 'not' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:32:9: 'not'
- {
- Match("not");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__44"
-
- // $ANTLR start "T__45"
- public void mT__45() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__45;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:33:7: ( '~' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:33:9: '~'
- {
- Match('~');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__45"
-
- // $ANTLR start "T__46"
- public void mT__46() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__46;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:34:7: ( '(' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:34:9: '('
- {
- Match('(');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__46"
-
- // $ANTLR start "T__47"
- public void mT__47() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__47;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:35:7: ( ')' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:35:9: ')'
- {
- Match(')');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__47"
-
- // $ANTLR start "T__48"
- public void mT__48() // throws RecognitionException [2]
- {
- try
- {
- var _type = T__48;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:36:7: ( ',' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:36:9: ','
- {
- Match(',');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "T__48"
-
- // $ANTLR start "TRUE"
- public void mTRUE() // throws RecognitionException [2]
- {
- try
- {
- var _type = TRUE;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:237:2: ( 'true' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:237:4: 'true'
- {
- Match("true");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "TRUE"
-
- // $ANTLR start "FALSE"
- public void mFALSE() // throws RecognitionException [2]
- {
- try
- {
- var _type = FALSE;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:241:2: ( 'false' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:241:4: 'false'
- {
- Match("false");
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "FALSE"
-
- // $ANTLR start "ID"
- public void mID() // throws RecognitionException [2]
- {
- try
- {
- var _type = ID;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:245:2: ( LETTER ( LETTER | DIGIT )* )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:245:5: LETTER ( LETTER | DIGIT )*
- {
- mLETTER();
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:245:12: ( LETTER | DIGIT )*
- do
- {
- var alt1 = 2;
- var LA1_0 = input.LA(1);
-
- if (LA1_0 >= '0' && LA1_0 <= '9' || LA1_0 >= 'A' && LA1_0 <= 'Z' || LA1_0 == '_' || LA1_0 >= 'a' && LA1_0 <= 'z')
- {
- alt1 = 1;
- }
-
- switch (alt1)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:
- {
- if (input.LA(1) >= '0' && input.LA(1) <= '9' || input.LA(1) >= 'A' && input.LA(1) <= 'Z' || input.LA(1) == '_' || input.LA(1) >= 'a' && input.LA(1) <= 'z')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- break;
-
- default:
- goto loop1;
- }
- }
- while (true);
-
- loop1:
- ; // Stops C# compiler whining that label 'loop1' has no statements
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "ID"
-
- // $ANTLR start "INTEGER"
- public void mINTEGER() // throws RecognitionException [2]
- {
- try
- {
- var _type = INTEGER;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:2: ( ( DIGIT )+ )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:4: ( DIGIT )+
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:4: ( DIGIT )+
- var cnt2 = 0;
- do
- {
- var alt2 = 2;
- var LA2_0 = input.LA(1);
-
- if (LA2_0 >= '0' && LA2_0 <= '9')
- {
- alt2 = 1;
- }
-
- switch (alt2)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:249:4: DIGIT
- {
- mDIGIT();
- }
- break;
-
- default:
- if (cnt2 >= 1)
- {
- goto loop2;
- }
- var eee2 =
- new EarlyExitException(2, input);
- throw eee2;
- }
- cnt2++;
- }
- while (true);
-
- loop2:
- ; // Stops C# compiler whining that label 'loop2' has no statements
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "INTEGER"
-
- // $ANTLR start "FLOAT"
- public void mFLOAT() // throws RecognitionException [2]
- {
- try
- {
- var _type = FLOAT;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:2: ( ( DIGIT )* '.' ( DIGIT )+ ( E )? | ( DIGIT )+ E )
- var alt7 = 2;
- alt7 = dfa7.Predict(input);
- switch (alt7)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:4: ( DIGIT )* '.' ( DIGIT )+ ( E )?
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:4: ( DIGIT )*
- do
- {
- var alt3 = 2;
- var LA3_0 = input.LA(1);
-
- if (LA3_0 >= '0' && LA3_0 <= '9')
- {
- alt3 = 1;
- }
-
- switch (alt3)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:4: DIGIT
- {
- mDIGIT();
- }
- break;
-
- default:
- goto loop3;
- }
- }
- while (true);
-
- loop3:
- ; // Stops C# compiler whining that label 'loop3' has no statements
-
- Match('.');
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:15: ( DIGIT )+
- var cnt4 = 0;
- do
- {
- var alt4 = 2;
- var LA4_0 = input.LA(1);
-
- if (LA4_0 >= '0' && LA4_0 <= '9')
- {
- alt4 = 1;
- }
-
- switch (alt4)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:15: DIGIT
- {
- mDIGIT();
- }
- break;
-
- default:
- if (cnt4 >= 1)
- {
- goto loop4;
- }
- var eee4 =
- new EarlyExitException(4, input);
- throw eee4;
- }
- cnt4++;
- }
- while (true);
-
- loop4:
- ; // Stops C# compiler whining that label 'loop4' has no statements
-
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:22: ( E )?
- var alt5 = 2;
- var LA5_0 = input.LA(1);
-
- if (LA5_0 == 'E' || LA5_0 == 'e')
- {
- alt5 = 1;
- }
- switch (alt5)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:253:22: E
- {
- mE();
- }
- break;
- }
- }
- break;
- case 2:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:254:4: ( DIGIT )+ E
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:254:4: ( DIGIT )+
- var cnt6 = 0;
- do
- {
- var alt6 = 2;
- var LA6_0 = input.LA(1);
-
- if (LA6_0 >= '0' && LA6_0 <= '9')
- {
- alt6 = 1;
- }
-
- switch (alt6)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:254:4: DIGIT
- {
- mDIGIT();
- }
- break;
-
- default:
- if (cnt6 >= 1)
- {
- goto loop6;
- }
- var eee6 =
- new EarlyExitException(6, input);
- throw eee6;
- }
- cnt6++;
- }
- while (true);
-
- loop6:
- ; // Stops C# compiler whining that label 'loop6' has no statements
-
- mE();
- }
- break;
- }
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "FLOAT"
-
- // $ANTLR start "STRING"
- public void mSTRING() // throws RecognitionException [2]
- {
- try
- {
- var _type = STRING;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:6: ( '\\'' ( EscapeSequence | ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) )* '\\'' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:10: '\\'' ( EscapeSequence | ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) )* '\\''
- {
- Match('\'');
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:15: ( EscapeSequence | ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) ) )*
- do
- {
- var alt8 = 3;
- var LA8_0 = input.LA(1);
-
- if (LA8_0 == '\\')
- {
- alt8 = 1;
- }
- else if (LA8_0 >= ' ' && LA8_0 <= '&' || LA8_0 >= '(' && LA8_0 <= '[' || LA8_0 >= ']' && LA8_0 <= '\uFFFF')
- {
- alt8 = 2;
- }
-
- switch (alt8)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:17: EscapeSequence
- {
- mEscapeSequence();
- }
- break;
- case 2:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:34: ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) )
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:34: ( options {greedy=false; } : ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' ) )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:258:61: ~ ( '\\u0000' .. '\\u001f' | '\\\\' | '\\'' )
- {
- if (input.LA(1) >= ' ' && input.LA(1) <= '&' || input.LA(1) >= '(' && input.LA(1) <= '[' || input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- }
- break;
-
- default:
- goto loop8;
- }
- }
- while (true);
-
- loop8:
- ; // Stops C# compiler whining that label 'loop8' has no statements
-
- Match('\'');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "STRING"
-
- // $ANTLR start "DATETIME"
- public void mDATETIME() // throws RecognitionException [2]
- {
- try
- {
- var _type = DATETIME;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:3: ( '#' ( options {greedy=false; } : (~ ( '#' ) )* ) '#' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:5: '#' ( options {greedy=false; } : (~ ( '#' ) )* ) '#'
- {
- Match('#');
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:9: ( options {greedy=false; } : (~ ( '#' ) )* )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:36: (~ ( '#' ) )*
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:36: (~ ( '#' ) )*
- do
- {
- var alt9 = 2;
- var LA9_0 = input.LA(1);
-
- if (LA9_0 >= '\u0000' && LA9_0 <= '\"' || LA9_0 >= '$' && LA9_0 <= '\uFFFF')
- {
- alt9 = 1;
- }
-
- switch (alt9)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:262:36: ~ ( '#' )
- {
- if (input.LA(1) >= '\u0000' && input.LA(1) <= '\"' || input.LA(1) >= '$' && input.LA(1) <= '\uFFFF')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- break;
-
- default:
- goto loop9;
- }
- }
- while (true);
-
- loop9:
- ; // Stops C# compiler whining that label 'loop9' has no statements
- }
-
- Match('#');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "DATETIME"
-
- // $ANTLR start "NAME"
- public void mNAME() // throws RecognitionException [2]
- {
- try
- {
- var _type = NAME;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:6: ( '[' ( options {greedy=false; } : (~ ( ']' ) )* ) ']' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:8: '[' ( options {greedy=false; } : (~ ( ']' ) )* ) ']'
- {
- Match('[');
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:12: ( options {greedy=false; } : (~ ( ']' ) )* )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:39: (~ ( ']' ) )*
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:39: (~ ( ']' ) )*
- do
- {
- var alt10 = 2;
- var LA10_0 = input.LA(1);
-
- if (LA10_0 >= '\u0000' && LA10_0 <= '\\' || LA10_0 >= '^' && LA10_0 <= '\uFFFF')
- {
- alt10 = 1;
- }
-
- switch (alt10)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:265:39: ~ ( ']' )
- {
- if (input.LA(1) >= '\u0000' && input.LA(1) <= '\\' || input.LA(1) >= '^' && input.LA(1) <= '\uFFFF')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- break;
-
- default:
- goto loop10;
- }
- }
- while (true);
-
- loop10:
- ; // Stops C# compiler whining that label 'loop10' has no statements
- }
-
- Match(']');
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "NAME"
-
- // $ANTLR start "E"
- public void mE() // throws RecognitionException [2]
- {
- try
- {
- var _type = E;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:3: ( ( 'E' | 'e' ) ( '+' | '-' )? ( DIGIT )+ )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:5: ( 'E' | 'e' ) ( '+' | '-' )? ( DIGIT )+
- {
- if (input.LA(1) == 'E' || input.LA(1) == 'e')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
-
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:15: ( '+' | '-' )?
- var alt11 = 2;
- var LA11_0 = input.LA(1);
-
- if (LA11_0 == '+' || LA11_0 == '-')
- {
- alt11 = 1;
- }
- switch (alt11)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:
- {
- if (input.LA(1) == '+' || input.LA(1) == '-')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- break;
- }
-
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:26: ( DIGIT )+
- var cnt12 = 0;
- do
- {
- var alt12 = 2;
- var LA12_0 = input.LA(1);
-
- if (LA12_0 >= '0' && LA12_0 <= '9')
- {
- alt12 = 1;
- }
-
- switch (alt12)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:268:26: DIGIT
- {
- mDIGIT();
- }
- break;
-
- default:
- if (cnt12 >= 1)
- {
- goto loop12;
- }
- var eee12 =
- new EarlyExitException(12, input);
- throw eee12;
- }
- cnt12++;
- }
- while (true);
-
- loop12:
- ; // Stops C# compiler whining that label 'loop12' has no statements
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "E"
-
- // $ANTLR start "LETTER"
- public void mLETTER() // throws RecognitionException [2]
- {
- try
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:272:2: ( 'a' .. 'z' | 'A' .. 'Z' | '_' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:
- {
- if (input.LA(1) >= 'A' && input.LA(1) <= 'Z' || input.LA(1) == '_' || input.LA(1) >= 'a' && input.LA(1) <= 'z')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- }
- finally { }
- }
-
- // $ANTLR end "LETTER"
-
- // $ANTLR start "DIGIT"
- public void mDIGIT() // throws RecognitionException [2]
- {
- try
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:278:2: ( '0' .. '9' )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:278:4: '0' .. '9'
- {
- MatchRange('0', '9');
- }
- }
- finally { }
- }
-
- // $ANTLR end "DIGIT"
-
- // $ANTLR start "EscapeSequence"
- public void mEscapeSequence() // throws RecognitionException [2]
- {
- try
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:282:2: ( '\\\\' ( 'n' | 'r' | 't' | '\\'' | '\\\\' | UnicodeEscape ) )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:282:4: '\\\\' ( 'n' | 'r' | 't' | '\\'' | '\\\\' | UnicodeEscape )
- {
- Match('\\');
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:283:4: ( 'n' | 'r' | 't' | '\\'' | '\\\\' | UnicodeEscape )
- var alt13 = 6;
- switch (input.LA(1))
- {
- case 'n':
- {
- alt13 = 1;
- }
- break;
- case 'r':
- {
- alt13 = 2;
- }
- break;
- case 't':
- {
- alt13 = 3;
- }
- break;
- case '\'':
- {
- alt13 = 4;
- }
- break;
- case '\\':
- {
- alt13 = 5;
- }
- break;
- case 'u':
- {
- alt13 = 6;
- }
- break;
- default:
- var nvae_d13s0 =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae_d13s0;
- }
-
- switch (alt13)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:284:5: 'n'
- {
- Match('n');
- }
- break;
- case 2:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:285:4: 'r'
- {
- Match('r');
- }
- break;
- case 3:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:286:4: 't'
- {
- Match('t');
- }
- break;
- case 4:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:287:4: '\\''
- {
- Match('\'');
- }
- break;
- case 5:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:288:4: '\\\\'
- {
- Match('\\');
- }
- break;
- case 6:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:289:4: UnicodeEscape
- {
- mUnicodeEscape();
- }
- break;
- }
- }
- }
- finally { }
- }
-
- // $ANTLR end "EscapeSequence"
-
- // $ANTLR start "HexDigit"
- public void mHexDigit() // throws RecognitionException [2]
- {
- try
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:294:2: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:294:5: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- if (input.LA(1) >= '0' && input.LA(1) <= '9' || input.LA(1) >= 'A' && input.LA(1) <= 'F' || input.LA(1) >= 'a' && input.LA(1) <= 'f')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
- }
- }
- finally { }
- }
-
- // $ANTLR end "HexDigit"
-
- // $ANTLR start "UnicodeEscape"
- public void mUnicodeEscape() // throws RecognitionException [2]
- {
- try
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:298:6: ( 'u' HexDigit HexDigit HexDigit HexDigit )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:298:12: 'u' HexDigit HexDigit HexDigit HexDigit
- {
- Match('u');
- mHexDigit();
- mHexDigit();
- mHexDigit();
- mHexDigit();
- }
- }
- finally { }
- }
-
- // $ANTLR end "UnicodeEscape"
-
- // $ANTLR start "WS"
- public void mWS() // throws RecognitionException [2]
- {
- try
- {
- var _type = WS;
- var _channel = DEFAULT_TOKEN_CHANNEL;
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:302:4: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) )
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:302:7: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' )
- {
- if (input.LA(1) >= '\t' && input.LA(1) <= '\n' || input.LA(1) >= '\f' && input.LA(1) <= '\r' || input.LA(1) == ' ')
- {
- input.Consume();
- }
- else
- {
- var mse = new MismatchedSetException(null, input);
- Recover(mse);
- throw mse;
- }
-
- _channel = HIDDEN;
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally { }
- }
-
- // $ANTLR end "WS"
-
- override public void mTokens() // throws RecognitionException
- {
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:8: ( T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | TRUE | FALSE | ID | INTEGER | FLOAT | STRING | DATETIME | NAME | E | WS )
- var alt14 = 40;
- alt14 = dfa14.Predict(input);
- switch (alt14)
- {
- case 1:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:10: T__19
- {
- mT__19();
- }
- break;
- case 2:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:16: T__20
- {
- mT__20();
- }
- break;
- case 3:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:22: T__21
- {
- mT__21();
- }
- break;
- case 4:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:28: T__22
- {
- mT__22();
- }
- break;
- case 5:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:34: T__23
- {
- mT__23();
- }
- break;
- case 6:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:40: T__24
- {
- mT__24();
- }
- break;
- case 7:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:46: T__25
- {
- mT__25();
- }
- break;
- case 8:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:52: T__26
- {
- mT__26();
- }
- break;
- case 9:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:58: T__27
- {
- mT__27();
- }
- break;
- case 10:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:64: T__28
- {
- mT__28();
- }
- break;
- case 11:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:70: T__29
- {
- mT__29();
- }
- break;
- case 12:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:76: T__30
- {
- mT__30();
- }
- break;
- case 13:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:82: T__31
- {
- mT__31();
- }
- break;
- case 14:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:88: T__32
- {
- mT__32();
- }
- break;
- case 15:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:94: T__33
- {
- mT__33();
- }
- break;
- case 16:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:100: T__34
- {
- mT__34();
- }
- break;
- case 17:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:106: T__35
- {
- mT__35();
- }
- break;
- case 18:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:112: T__36
- {
- mT__36();
- }
- break;
- case 19:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:118: T__37
- {
- mT__37();
- }
- break;
- case 20:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:124: T__38
- {
- mT__38();
- }
- break;
- case 21:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:130: T__39
- {
- mT__39();
- }
- break;
- case 22:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:136: T__40
- {
- mT__40();
- }
- break;
- case 23:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:142: T__41
- {
- mT__41();
- }
- break;
- case 24:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:148: T__42
- {
- mT__42();
- }
- break;
- case 25:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:154: T__43
- {
- mT__43();
- }
- break;
- case 26:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:160: T__44
- {
- mT__44();
- }
- break;
- case 27:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:166: T__45
- {
- mT__45();
- }
- break;
- case 28:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:172: T__46
- {
- mT__46();
- }
- break;
- case 29:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:178: T__47
- {
- mT__47();
- }
- break;
- case 30:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:184: T__48
- {
- mT__48();
- }
- break;
- case 31:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:190: TRUE
- {
- mTRUE();
- }
- break;
- case 32:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:195: FALSE
- {
- mFALSE();
- }
- break;
- case 33:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:201: ID
- {
- mID();
- }
- break;
- case 34:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:204: INTEGER
- {
- mINTEGER();
- }
- break;
- case 35:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:212: FLOAT
- {
- mFLOAT();
- }
- break;
- case 36:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:218: STRING
- {
- mSTRING();
- }
- break;
- case 37:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:225: DATETIME
- {
- mDATETIME();
- }
- break;
- case 38:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:234: NAME
- {
- mNAME();
- }
- break;
- case 39:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:239: E
- {
- mE();
- }
- break;
- case 40:
- // C:\\Users\\s.ros\\Documents\\D�veloppement\\NCalc\\Grammar\\NCalc.g:1:241: WS
- {
- mWS();
- }
- break;
- }
- }
-
- public const int T__29 = 29;
- public const int T__28 = 28;
- public const int T__27 = 27;
- public const int T__26 = 26;
- public const int T__25 = 25;
- public const int T__24 = 24;
- public const int LETTER = 12;
- public const int T__23 = 23;
- public const int T__22 = 22;
- public const int T__21 = 21;
- public const int T__20 = 20;
- public const int FLOAT = 5;
- public const int ID = 10;
- public const int EOF = -1;
- public const int HexDigit = 17;
- public const int T__19 = 19;
- public const int NAME = 11;
- public const int DIGIT = 13;
- public const int T__42 = 42;
- public const int INTEGER = 4;
- public const int E = 14;
- public const int T__43 = 43;
- public const int T__40 = 40;
- public const int T__41 = 41;
- public const int T__46 = 46;
- public const int T__47 = 47;
- public const int T__44 = 44;
- public const int T__45 = 45;
- public const int T__48 = 48;
- public const int DATETIME = 7;
- public const int TRUE = 8;
- public const int T__30 = 30;
- public const int T__31 = 31;
- public const int T__32 = 32;
- public const int WS = 18;
- public const int T__33 = 33;
- public const int T__34 = 34;
- public const int T__35 = 35;
- public const int T__36 = 36;
- public const int T__37 = 37;
- public const int T__38 = 38;
- public const int T__39 = 39;
- public const int UnicodeEscape = 16;
- public const int FALSE = 9;
- public const int EscapeSequence = 15;
- public const int STRING = 6;
-
- private const string DFA7_eotS =
- "\x04\uffff";
-
- private const string DFA7_eofS =
- "\x04\uffff";
-
- private const string DFA7_minS =
- "\x02\x2e\x02\uffff";
-
- private const string DFA7_maxS =
- "\x01\x39\x01\x65\x02\uffff";
-
- private const string DFA7_acceptS =
- "\x02\uffff\x01\x01\x01\x02";
-
- private const string DFA7_specialS =
- "\x04\uffff}>";
-
- private const string DFA14_eotS =
- "\x03\uffff\x01\x21\x01\x1e\x01\x24\x01\x1e\x01\uffff\x01\x27\x01" +
- "\x29\x01\x2d\x01\x30\x05\uffff\x01\x1e\x04\uffff\x03\x1e\x01\x36" +
- "\x08\uffff\x01\x37\x02\uffff\x01\x1e\x0b\uffff\x03\x1e\x01\uffff" +
- "\x01\x1e\x02\uffff\x01\x3c\x01\x3d\x02\x1e\x02\uffff\x01\x40\x01" +
- "\x1e\x01\uffff\x01\x42\x01\uffff";
-
- private const string DFA14_eofS =
- "\x43\uffff";
-
- private const string DFA14_minS =
- "\x01\x09\x02\uffff\x01\x7c\x01\x72\x01\x26\x01\x6e\x01\uffff\x02" +
- "\x3d\x01\x3c\x01\x3d\x05\uffff\x01\x6f\x04\uffff\x01\x72\x01\x61" +
- "\x01\x2b\x01\x2e\x08\uffff\x01\x30\x02\uffff\x01\x64\x0b\uffff\x01" +
- "\x74\x01\x75\x01\x6c\x01\uffff\x01\x30\x02\uffff\x02\x30\x01\x65" +
- "\x01\x73\x02\uffff\x01\x30\x01\x65\x01\uffff\x01\x30\x01\uffff";
-
- private const string DFA14_maxS =
- "\x01\x7e\x02\uffff\x01\x7c\x01\x72\x01\x26\x01\x6e\x01\uffff\x02" +
- "\x3d\x02\x3e\x05\uffff\x01\x6f\x04\uffff\x01\x72\x01\x61\x01\x39" +
- "\x01\x65\x08\uffff\x01\x7a\x02\uffff\x01\x64\x0b\uffff\x01\x74\x01" +
- "\x75\x01\x6c\x01\uffff\x01\x39\x02\uffff\x02\x7a\x01\x65\x01\x73" +
- "\x02\uffff\x01\x7a\x01\x65\x01\uffff\x01\x7a\x01\uffff";
-
- private const string DFA14_acceptS =
- "\x01\uffff\x01\x01\x01\x02\x04\uffff\x01\x08\x04\uffff\x01\x14" +
- "\x01\x15\x01\x16\x01\x17\x01\x18\x01\uffff\x01\x1b\x01\x1c\x01\x1d" +
- "\x01\x1e\x04\uffff\x01\x23\x01\x24\x01\x25\x01\x26\x01\x21\x01\x28" +
- "\x01\x03\x01\x07\x01\uffff\x01\x05\x01\x09\x01\uffff\x01\x0a\x01" +
- "\x0b\x01\x0c\x01\x19\x01\x0d\x01\x0f\x01\x12\x01\x0e\x01\x11\x01" +
- "\x13\x01\x10\x03\uffff\x01\x27\x01\uffff\x01\x22\x01\x04\x04\uffff" +
- "\x01\x06\x01\x1a\x02\uffff\x01\x1f\x01\uffff\x01\x20";
-
- private const string DFA14_specialS =
- "\x43\uffff}>";
-
- private static readonly string[] DFA7_transitionS =
- {
- "\x01\x02\x01\uffff\x0a\x01",
- "\x01\x02\x01\uffff\x0a\x01\x0b\uffff\x01\x03\x1f\uffff\x01" +
- "\x03",
- "",
- ""
- };
-
- private static readonly short[] DFA7_eot = DFA.UnpackEncodedString(DFA7_eotS);
- private static readonly short[] DFA7_eof = DFA.UnpackEncodedString(DFA7_eofS);
- private static readonly char[] DFA7_min = DFA.UnpackEncodedStringToUnsignedChars(DFA7_minS);
- private static readonly char[] DFA7_max = DFA.UnpackEncodedStringToUnsignedChars(DFA7_maxS);
- private static readonly short[] DFA7_accept = DFA.UnpackEncodedString(DFA7_acceptS);
- private static readonly short[] DFA7_special = DFA.UnpackEncodedString(DFA7_specialS);
- private static readonly short[][] DFA7_transition = DFA.UnpackEncodedStringArray(DFA7_transitionS);
-
- private static readonly string[] DFA14_transitionS =
- {
- "\x02\x1f\x01\uffff\x02\x1f\x12\uffff\x01\x1f\x01\x09\x01\uffff" +
- "\x01\x1c\x01\uffff\x01\x10\x01\x05\x01\x1b\x01\x13\x01\x14\x01" +
- "\x0e\x01\x0c\x01\x15\x01\x0d\x01\x1a\x01\x0f\x0a\x19\x01\x02" +
- "\x01\uffff\x01\x0a\x01\x08\x01\x0b\x01\x01\x01\uffff\x04\x1e" +
- "\x01\x18\x15\x1e\x01\x1d\x02\uffff\x01\x07\x01\x1e\x01\uffff" +
- "\x01\x06\x03\x1e\x01\x18\x01\x17\x07\x1e\x01\x11\x01\x04\x04" +
- "\x1e\x01\x16\x06\x1e\x01\uffff\x01\x03\x01\uffff\x01\x12",
- "",
- "",
- "\x01\x20",
- "\x01\x22",
- "\x01\x23",
- "\x01\x25",
- "",
- "\x01\x26",
- "\x01\x28",
- "\x01\x2c\x01\x2b\x01\x2a",
- "\x01\x2e\x01\x2f",
- "",
- "",
- "",
- "",
- "",
- "\x01\x31",
- "",
- "",
- "",
- "",
- "\x01\x32",
- "\x01\x33",
- "\x01\x34\x01\uffff\x01\x34\x02\uffff\x0a\x35",
- "\x01\x1a\x01\uffff\x0a\x19\x0b\uffff\x01\x1a\x1f\uffff\x01" +
- "\x1a",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" +
- "\x1e",
- "",
- "",
- "\x01\x38",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\x01\x39",
- "\x01\x3a",
- "\x01\x3b",
- "",
- "\x0a\x35",
- "",
- "",
- "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" +
- "\x1e",
- "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" +
- "\x1e",
- "\x01\x3e",
- "\x01\x3f",
- "",
- "",
- "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" +
- "\x1e",
- "\x01\x41",
- "",
- "\x0a\x1e\x07\uffff\x1a\x1e\x04\uffff\x01\x1e\x01\uffff\x1a" +
- "\x1e",
- ""
- };
-
- private static readonly short[] DFA14_eot = DFA.UnpackEncodedString(DFA14_eotS);
- private static readonly short[] DFA14_eof = DFA.UnpackEncodedString(DFA14_eofS);
- private static readonly char[] DFA14_min = DFA.UnpackEncodedStringToUnsignedChars(DFA14_minS);
- private static readonly char[] DFA14_max = DFA.UnpackEncodedStringToUnsignedChars(DFA14_maxS);
- private static readonly short[] DFA14_accept = DFA.UnpackEncodedString(DFA14_acceptS);
- private static readonly short[] DFA14_special = DFA.UnpackEncodedString(DFA14_specialS);
- private static readonly short[][] DFA14_transition = DFA.UnpackEncodedStringArray(DFA14_transitionS);
-
- protected class DFA7 : DFA
- {
- public DFA7(BaseRecognizer recognizer)
- {
- this.recognizer = recognizer;
- decisionNumber = 7;
- eot = DFA7_eot;
- eof = DFA7_eof;
- min = DFA7_min;
- max = DFA7_max;
- accept = DFA7_accept;
- special = DFA7_special;
- transition = DFA7_transition;
- }
-
- override public string Description
- {
- get
- {
- return "252:1: FLOAT : ( ( DIGIT )* '.' ( DIGIT )+ ( E )? | ( DIGIT )+ E );";
- }
- }
- }
-
- protected class DFA14 : DFA
- {
- public DFA14(BaseRecognizer recognizer)
- {
- this.recognizer = recognizer;
- decisionNumber = 14;
- eot = DFA14_eot;
- eof = DFA14_eof;
- min = DFA14_min;
- max = DFA14_max;
- accept = DFA14_accept;
- special = DFA14_special;
- transition = DFA14_transition;
- }
-
- override public string Description
- {
- get
- {
- return "1:1: Tokens : ( T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | TRUE | FALSE | ID | INTEGER | FLOAT | STRING | DATETIME | NAME | E | WS );";
- }
- }
- }
- }
- }
|