alagarde | 18c3546 | 2011-07-04 14:03:49 +0200 | [diff] [blame] | 1 | lexer grammar InternalModelingUnitXTextGrammar; |
| 2 | @header { |
| 3 | package org.eclipse.mylyn.docs.intent.parser.modelingunit.parser.antlr.internal; |
| 4 | |
| 5 | // Hack: Use our own Lexer superclass by means of import. |
| 6 | // Currently there is no other way to specify the superclass for the lexer. |
| 7 | import org.eclipse.xtext.parser.antlr.Lexer; |
| 8 | } |
| 9 | |
| 10 | T15 : '@see' ; |
| 11 | T16 : 'lineBreak' ; |
| 12 | T17 : 'AdressedAnnotation' ; |
| 13 | T18 : '{' ; |
| 14 | T19 : 'receiver' ; |
| 15 | T20 : ',' ; |
| 16 | T21 : '}' ; |
| 17 | T22 : 'source' ; |
| 18 | T23 : 'message' ; |
| 19 | T24 : 'type' ; |
| 20 | T25 : 'href' ; |
| 21 | T26 : 'referencedElement' ; |
| 22 | T27 : '@Annotation' ; |
| 23 | T28 : 'new' ; |
| 24 | T29 : '[' ; |
| 25 | T30 : ']' ; |
| 26 | T31 : ';' ; |
| 27 | T32 : '=' ; |
| 28 | T33 : 'Resource' ; |
| 29 | T34 : 'URI' ; |
| 30 | T35 : 'contentType' ; |
| 31 | T36 : 'content' ; |
| 32 | T37 : '+=' ; |
| 33 | T38 : '@lazylabel' ; |
| 34 | T39 : '@label' ; |
| 35 | |
| 36 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2554 |
| 37 | RULE_EINT : RULE_INT; |
| 38 | |
| 39 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2556 |
| 40 | RULE_STRINGWITHOUTQUOTES : ('a'..'z'|'A'..'Z'|'0'..'9'|'.'|':'|'_'|'-')+; |
| 41 | |
| 42 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2558 |
| 43 | RULE_URI : '"' ('file:/'|'platform:/'|'cdo:/') ('a'..'z'|'A'..'Z'|'0'..'9'|'.'|'/'|':'|'_'|'-')+ '"'; |
| 44 | |
| 45 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2560 |
| 46 | RULE_LINE_BREAK : '\n'; |
| 47 | |
| 48 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2562 |
| 49 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; |
| 50 | |
| 51 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2564 |
| 52 | RULE_INT : ('0'..'9')+; |
| 53 | |
| 54 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2566 |
| 55 | RULE_STRING : ('"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"'|'\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\''); |
| 56 | |
| 57 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2568 |
| 58 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; |
| 59 | |
| 60 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2570 |
| 61 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; |
| 62 | |
| 63 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2572 |
| 64 | RULE_WS : (' '|'\t'|'\r'|'\n')+; |
| 65 | |
| 66 | // $ANTLR src "../org.eclipse.mylyn.docs.intent.parser/src-gen/org/eclipse/mylyn/docs/intent/parser/modelingunit/parser/antlr/internal/InternalModelingUnitXTextGrammar.g" 2574 |
| 67 | RULE_ANY_OTHER : .; |
| 68 | |
| 69 | |