1 // $ANTLR 3.1.2 BuildOptions\\ProfileGrammar.g3 2009-09-30 13:18:18
2 
3 // The variable 'variable' is assigned but its value is never used.
4 #pragma warning disable 219
5 // Unreachable code detected.
6 #pragma warning disable 162
7 
8 
9 using System.Collections.Generic;
10 using Antlr.Runtime;
11 using Stack = System.Collections.Generic.Stack<object>;
12 using List = System.Collections.IList;
13 using ArrayList = System.Collections.Generic.List<object>;
14 
15 [System.CodeDom.Compiler.GeneratedCode("ANTLR", "3.1.2")]
16 [System.CLSCompliant(false)]
17 public partial class ProfileGrammarLexer : Lexer
18 {
19 	public const int EOF=-1;
20 	public const int T__10=10;
21 	public const int T__11=11;
22 	public const int T__12=12;
23 	public const int T__13=13;
24 	public const int T__14=14;
25 	public const int T__15=15;
26 	public const int T__16=16;
27 	public const int T__17=17;
28 	public const int CALL=4;
29 	public const int FUNC=5;
30 	public const int ID=6;
31 	public const int INT=7;
32 	public const int NEWLINE=8;
33 	public const int WS=9;
34 
35     // delegates
36     // delegators
37 
ProfileGrammarLexer()38 	public ProfileGrammarLexer() {}
ProfileGrammarLexer( ICharStream input )39 	public ProfileGrammarLexer( ICharStream input )
40 		: this( input, new RecognizerSharedState() )
41 	{
42 	}
ProfileGrammarLexer( ICharStream input, RecognizerSharedState state )43 	public ProfileGrammarLexer( ICharStream input, RecognizerSharedState state )
44 		: base( input, state )
45 	{
46 
47 	}
48 	public override string GrammarFileName { get { return "BuildOptions\\ProfileGrammar.g3"; } }
49 
50 	// $ANTLR start "T__10"
mT__10()51 	private void mT__10()
52 	{
53 		try
54 		{
55 			int _type = T__10;
56 			int _channel = DefaultTokenChannel;
57 			// BuildOptions\\ProfileGrammar.g3:7:9: ( '-' )
58 			// BuildOptions\\ProfileGrammar.g3:7:9: '-'
59 			{
60 			Match('-');
61 
62 			}
63 
64 			state.type = _type;
65 			state.channel = _channel;
66 		}
67 		finally
68 		{
69 		}
70 	}
71 	// $ANTLR end "T__10"
72 
73 	// $ANTLR start "T__11"
mT__11()74 	private void mT__11()
75 	{
76 		try
77 		{
78 			int _type = T__11;
79 			int _channel = DefaultTokenChannel;
80 			// BuildOptions\\ProfileGrammar.g3:8:9: ( '%' )
81 			// BuildOptions\\ProfileGrammar.g3:8:9: '%'
82 			{
83 			Match('%');
84 
85 			}
86 
87 			state.type = _type;
88 			state.channel = _channel;
89 		}
90 		finally
91 		{
92 		}
93 	}
94 	// $ANTLR end "T__11"
95 
96 	// $ANTLR start "T__12"
mT__12()97 	private void mT__12()
98 	{
99 		try
100 		{
101 			int _type = T__12;
102 			int _channel = DefaultTokenChannel;
103 			// BuildOptions\\ProfileGrammar.g3:9:9: ( '(' )
104 			// BuildOptions\\ProfileGrammar.g3:9:9: '('
105 			{
106 			Match('(');
107 
108 			}
109 
110 			state.type = _type;
111 			state.channel = _channel;
112 		}
113 		finally
114 		{
115 		}
116 	}
117 	// $ANTLR end "T__12"
118 
119 	// $ANTLR start "T__13"
mT__13()120 	private void mT__13()
121 	{
122 		try
123 		{
124 			int _type = T__13;
125 			int _channel = DefaultTokenChannel;
126 			// BuildOptions\\ProfileGrammar.g3:10:9: ( ')' )
127 			// BuildOptions\\ProfileGrammar.g3:10:9: ')'
128 			{
129 			Match(')');
130 
131 			}
132 
133 			state.type = _type;
134 			state.channel = _channel;
135 		}
136 		finally
137 		{
138 		}
139 	}
140 	// $ANTLR end "T__13"
141 
142 	// $ANTLR start "T__14"
mT__14()143 	private void mT__14()
144 	{
145 		try
146 		{
147 			int _type = T__14;
148 			int _channel = DefaultTokenChannel;
149 			// BuildOptions\\ProfileGrammar.g3:11:9: ( '*' )
150 			// BuildOptions\\ProfileGrammar.g3:11:9: '*'
151 			{
152 			Match('*');
153 
154 			}
155 
156 			state.type = _type;
157 			state.channel = _channel;
158 		}
159 		finally
160 		{
161 		}
162 	}
163 	// $ANTLR end "T__14"
164 
165 	// $ANTLR start "T__15"
mT__15()166 	private void mT__15()
167 	{
168 		try
169 		{
170 			int _type = T__15;
171 			int _channel = DefaultTokenChannel;
172 			// BuildOptions\\ProfileGrammar.g3:12:9: ( '/' )
173 			// BuildOptions\\ProfileGrammar.g3:12:9: '/'
174 			{
175 			Match('/');
176 
177 			}
178 
179 			state.type = _type;
180 			state.channel = _channel;
181 		}
182 		finally
183 		{
184 		}
185 	}
186 	// $ANTLR end "T__15"
187 
188 	// $ANTLR start "T__16"
mT__16()189 	private void mT__16()
190 	{
191 		try
192 		{
193 			int _type = T__16;
194 			int _channel = DefaultTokenChannel;
195 			// BuildOptions\\ProfileGrammar.g3:13:9: ( '+' )
196 			// BuildOptions\\ProfileGrammar.g3:13:9: '+'
197 			{
198 			Match('+');
199 
200 			}
201 
202 			state.type = _type;
203 			state.channel = _channel;
204 		}
205 		finally
206 		{
207 		}
208 	}
209 	// $ANTLR end "T__16"
210 
211 	// $ANTLR start "T__17"
mT__17()212 	private void mT__17()
213 	{
214 		try
215 		{
216 			int _type = T__17;
217 			int _channel = DefaultTokenChannel;
218 			// BuildOptions\\ProfileGrammar.g3:14:9: ( '=' )
219 			// BuildOptions\\ProfileGrammar.g3:14:9: '='
220 			{
221 			Match('=');
222 
223 			}
224 
225 			state.type = _type;
226 			state.channel = _channel;
227 		}
228 		finally
229 		{
230 		}
231 	}
232 	// $ANTLR end "T__17"
233 
234 	// $ANTLR start "ID"
mID()235 	private void mID()
236 	{
237 		try
238 		{
239 			int _type = ID;
240 			int _channel = DefaultTokenChannel;
241 			// BuildOptions\\ProfileGrammar.g3:88:9: ( ( 'a' .. 'z' | 'A' .. 'Z' )+ )
242 			// BuildOptions\\ProfileGrammar.g3:88:9: ( 'a' .. 'z' | 'A' .. 'Z' )+
243 			{
244 			// BuildOptions\\ProfileGrammar.g3:88:9: ( 'a' .. 'z' | 'A' .. 'Z' )+
245 			int cnt1=0;
246 			for ( ; ; )
247 			{
248 				int alt1=2;
249 				int LA1_0 = input.LA(1);
250 
251 				if ( ((LA1_0>='A' && LA1_0<='Z')||(LA1_0>='a' && LA1_0<='z')) )
252 				{
253 					alt1=1;
254 				}
255 
256 
257 				switch ( alt1 )
258 				{
259 				case 1:
260 					// BuildOptions\\ProfileGrammar.g3:
261 					{
262 					input.Consume();
263 
264 
265 					}
266 					break;
267 
268 				default:
269 					if ( cnt1 >= 1 )
270 						goto loop1;
271 
272 					EarlyExitException eee1 = new EarlyExitException( 1, input );
273 					throw eee1;
274 				}
275 				cnt1++;
276 			}
277 			loop1:
278 				;
279 
280 
281 
282 			}
283 
284 			state.type = _type;
285 			state.channel = _channel;
286 		}
287 		finally
288 		{
289 		}
290 	}
291 	// $ANTLR end "ID"
292 
293 	// $ANTLR start "INT"
mINT()294 	private void mINT()
295 	{
296 		try
297 		{
298 			int _type = INT;
299 			int _channel = DefaultTokenChannel;
300 			// BuildOptions\\ProfileGrammar.g3:91:9: ( ( '0' .. '9' )+ )
301 			// BuildOptions\\ProfileGrammar.g3:91:9: ( '0' .. '9' )+
302 			{
303 			// BuildOptions\\ProfileGrammar.g3:91:9: ( '0' .. '9' )+
304 			int cnt2=0;
305 			for ( ; ; )
306 			{
307 				int alt2=2;
308 				int LA2_0 = input.LA(1);
309 
310 				if ( ((LA2_0>='0' && LA2_0<='9')) )
311 				{
312 					alt2=1;
313 				}
314 
315 
316 				switch ( alt2 )
317 				{
318 				case 1:
319 					// BuildOptions\\ProfileGrammar.g3:
320 					{
321 					input.Consume();
322 
323 
324 					}
325 					break;
326 
327 				default:
328 					if ( cnt2 >= 1 )
329 						goto loop2;
330 
331 					EarlyExitException eee2 = new EarlyExitException( 2, input );
332 					throw eee2;
333 				}
334 				cnt2++;
335 			}
336 			loop2:
337 				;
338 
339 
340 
341 			}
342 
343 			state.type = _type;
344 			state.channel = _channel;
345 		}
346 		finally
347 		{
348 		}
349 	}
350 	// $ANTLR end "INT"
351 
352 	// $ANTLR start "NEWLINE"
mNEWLINE()353 	private void mNEWLINE()
354 	{
355 		try
356 		{
357 			int _type = NEWLINE;
358 			int _channel = DefaultTokenChannel;
359 			// BuildOptions\\ProfileGrammar.g3:95:7: ( ( '\\r' )? '\\n' )
360 			// BuildOptions\\ProfileGrammar.g3:95:7: ( '\\r' )? '\\n'
361 			{
362 			// BuildOptions\\ProfileGrammar.g3:95:7: ( '\\r' )?
363 			int alt3=2;
364 			int LA3_0 = input.LA(1);
365 
366 			if ( (LA3_0=='\r') )
367 			{
368 				alt3=1;
369 			}
370 			switch ( alt3 )
371 			{
372 			case 1:
373 				// BuildOptions\\ProfileGrammar.g3:95:0: '\\r'
374 				{
375 				Match('\r');
376 
377 				}
378 				break;
379 
380 			}
381 
382 			Match('\n');
383 
384 			}
385 
386 			state.type = _type;
387 			state.channel = _channel;
388 		}
389 		finally
390 		{
391 		}
392 	}
393 	// $ANTLR end "NEWLINE"
394 
395 	// $ANTLR start "WS"
mWS()396 	private void mWS()
397 	{
398 		try
399 		{
400 			int _type = WS;
401 			int _channel = DefaultTokenChannel;
402 			// BuildOptions\\ProfileGrammar.g3:98:9: ( ( ' ' | '\\t' )+ )
403 			// BuildOptions\\ProfileGrammar.g3:98:9: ( ' ' | '\\t' )+
404 			{
405 			// BuildOptions\\ProfileGrammar.g3:98:9: ( ' ' | '\\t' )+
406 			int cnt4=0;
407 			for ( ; ; )
408 			{
409 				int alt4=2;
410 				int LA4_0 = input.LA(1);
411 
412 				if ( (LA4_0=='\t'||LA4_0==' ') )
413 				{
414 					alt4=1;
415 				}
416 
417 
418 				switch ( alt4 )
419 				{
420 				case 1:
421 					// BuildOptions\\ProfileGrammar.g3:
422 					{
423 					input.Consume();
424 
425 
426 					}
427 					break;
428 
429 				default:
430 					if ( cnt4 >= 1 )
431 						goto loop4;
432 
433 					EarlyExitException eee4 = new EarlyExitException( 4, input );
434 					throw eee4;
435 				}
436 				cnt4++;
437 			}
438 			loop4:
439 				;
440 
441 
442 			 Skip();
443 
444 			}
445 
446 			state.type = _type;
447 			state.channel = _channel;
448 		}
449 		finally
450 		{
451 		}
452 	}
453 	// $ANTLR end "WS"
454 
mTokens()455 	public override void mTokens()
456 	{
457 		// BuildOptions\\ProfileGrammar.g3:1:10: ( T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | ID | INT | NEWLINE | WS )
458 		int alt5=12;
459 		switch ( input.LA(1) )
460 		{
461 		case '-':
462 			{
463 			alt5=1;
464 			}
465 			break;
466 		case '%':
467 			{
468 			alt5=2;
469 			}
470 			break;
471 		case '(':
472 			{
473 			alt5=3;
474 			}
475 			break;
476 		case ')':
477 			{
478 			alt5=4;
479 			}
480 			break;
481 		case '*':
482 			{
483 			alt5=5;
484 			}
485 			break;
486 		case '/':
487 			{
488 			alt5=6;
489 			}
490 			break;
491 		case '+':
492 			{
493 			alt5=7;
494 			}
495 			break;
496 		case '=':
497 			{
498 			alt5=8;
499 			}
500 			break;
501 		case 'A':
502 		case 'B':
503 		case 'C':
504 		case 'D':
505 		case 'E':
506 		case 'F':
507 		case 'G':
508 		case 'H':
509 		case 'I':
510 		case 'J':
511 		case 'K':
512 		case 'L':
513 		case 'M':
514 		case 'N':
515 		case 'O':
516 		case 'P':
517 		case 'Q':
518 		case 'R':
519 		case 'S':
520 		case 'T':
521 		case 'U':
522 		case 'V':
523 		case 'W':
524 		case 'X':
525 		case 'Y':
526 		case 'Z':
527 		case 'a':
528 		case 'b':
529 		case 'c':
530 		case 'd':
531 		case 'e':
532 		case 'f':
533 		case 'g':
534 		case 'h':
535 		case 'i':
536 		case 'j':
537 		case 'k':
538 		case 'l':
539 		case 'm':
540 		case 'n':
541 		case 'o':
542 		case 'p':
543 		case 'q':
544 		case 'r':
545 		case 's':
546 		case 't':
547 		case 'u':
548 		case 'v':
549 		case 'w':
550 		case 'x':
551 		case 'y':
552 		case 'z':
553 			{
554 			alt5=9;
555 			}
556 			break;
557 		case '0':
558 		case '1':
559 		case '2':
560 		case '3':
561 		case '4':
562 		case '5':
563 		case '6':
564 		case '7':
565 		case '8':
566 		case '9':
567 			{
568 			alt5=10;
569 			}
570 			break;
571 		case '\n':
572 		case '\r':
573 			{
574 			alt5=11;
575 			}
576 			break;
577 		case '\t':
578 		case ' ':
579 			{
580 			alt5=12;
581 			}
582 			break;
583 		default:
584 			{
585 				NoViableAltException nvae = new NoViableAltException("", 5, 0, input);
586 
587 				throw nvae;
588 			}
589 		}
590 
591 		switch ( alt5 )
592 		{
593 		case 1:
594 			// BuildOptions\\ProfileGrammar.g3:1:10: T__10
595 			{
596 			mT__10();
597 
598 			}
599 			break;
600 		case 2:
601 			// BuildOptions\\ProfileGrammar.g3:1:16: T__11
602 			{
603 			mT__11();
604 
605 			}
606 			break;
607 		case 3:
608 			// BuildOptions\\ProfileGrammar.g3:1:22: T__12
609 			{
610 			mT__12();
611 
612 			}
613 			break;
614 		case 4:
615 			// BuildOptions\\ProfileGrammar.g3:1:28: T__13
616 			{
617 			mT__13();
618 
619 			}
620 			break;
621 		case 5:
622 			// BuildOptions\\ProfileGrammar.g3:1:34: T__14
623 			{
624 			mT__14();
625 
626 			}
627 			break;
628 		case 6:
629 			// BuildOptions\\ProfileGrammar.g3:1:40: T__15
630 			{
631 			mT__15();
632 
633 			}
634 			break;
635 		case 7:
636 			// BuildOptions\\ProfileGrammar.g3:1:46: T__16
637 			{
638 			mT__16();
639 
640 			}
641 			break;
642 		case 8:
643 			// BuildOptions\\ProfileGrammar.g3:1:52: T__17
644 			{
645 			mT__17();
646 
647 			}
648 			break;
649 		case 9:
650 			// BuildOptions\\ProfileGrammar.g3:1:58: ID
651 			{
652 			mID();
653 
654 			}
655 			break;
656 		case 10:
657 			// BuildOptions\\ProfileGrammar.g3:1:61: INT
658 			{
659 			mINT();
660 
661 			}
662 			break;
663 		case 11:
664 			// BuildOptions\\ProfileGrammar.g3:1:65: NEWLINE
665 			{
666 			mNEWLINE();
667 
668 			}
669 			break;
670 		case 12:
671 			// BuildOptions\\ProfileGrammar.g3:1:73: WS
672 			{
673 			mWS();
674 
675 			}
676 			break;
677 
678 		}
679 
680 	}
681 
682 
683 	#region DFA
684 
InitDFAs()685 	protected override void InitDFAs()
686 	{
687 		base.InitDFAs();
688 	}
689 
690 
691 	#endregion
692 
693 }
694