source: default/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf__.g @ 5

Last change on this file since 5 was 5, checked in by zeiss, 14 years ago
File size: 2.4 KB
Line 
1lexer grammar InternalEbnf;
2@header {
3package de.ugoe.cs.swe.bnftools.ui.contentassist.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.
7import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
8}
9
10T13 : ')' ;
11T14 : ']' ;
12T15 : '}' ;
13T16 : '|' ;
14T17 : '(' ;
15T18 : '[' ;
16T19 : '{' ;
17T20 : '*' ;
18T21 : '+' ;
19T22 : 'grammar' ;
20T23 : ';' ;
21T24 : 'import' ;
22T25 : '/' ;
23T26 : 'label:' ;
24T27 : '::=' ;
25T28 : '.' ;
26T29 : '<-' ;
27T30 : 'global' ;
28T31 : 'combinator:' ;
29T32 : 'rule' ;
30T33 : 'hook' ;
31T34 : '/bnf' ;
32T35 : '/delta' ;
33T36 : '/merge' ;
34T37 : 'core' ;
35T38 : 'package' ;
36T39 : 'update' ;
37
38// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4517
39RULE_ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*;
40
41// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4519
42RULE_INT : ('0'..'9')+;
43
44// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4521
45RULE_WS : (' '|'\t'|'\r'? '\n')+;
46
47// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4523
48RULE_COLON : '"' '"' '"';
49
50// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4525
51RULE_STRING : ('"' ~('"')* '"'|'\'' ~('\'')* '\'');
52
53// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4527
54RULE_SECTIONHEADER : ('a'..'z'|'A'..'Z') ('.'|'0'..'9')+ (' '|'\t') ~(('\n'|'\r'))* '\r'? '\n';
55
56// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4529
57RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?;
58
59// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4531
60RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';
61
62// $ANTLR src "../de.ugoe.cs.swe.bnftools.ebnf.ui/src-gen/de/ugoe/cs/swe/bnftools/ui/contentassist/antlr/internal/InternalEbnf.g" 4533
63RULE_LOGIC : ('/and'|'/or'|'/andr'|'/orr'|'/any'|'/together');
64
65
Note: See TracBrowser for help on using the repository browser.