aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/ObjC/Framework/examples/LL-star/SimpleC__.gl
diff options
context:
space:
mode:
Diffstat (limited to 'antlr-3.4/runtime/ObjC/Framework/examples/LL-star/SimpleC__.gl')
-rw-r--r--antlr-3.4/runtime/ObjC/Framework/examples/LL-star/SimpleC__.gl37
1 files changed, 37 insertions, 0 deletions
diff --git a/antlr-3.4/runtime/ObjC/Framework/examples/LL-star/SimpleC__.gl b/antlr-3.4/runtime/ObjC/Framework/examples/LL-star/SimpleC__.gl
new file mode 100644
index 0000000..b36f80b
--- /dev/null
+++ b/antlr-3.4/runtime/ObjC/Framework/examples/LL-star/SimpleC__.gl
@@ -0,0 +1,37 @@
+lexer grammar SimpleC;
+options {
+ language=ObjC;
+
+}
+
+T7 : ';' ;
+T8 : '(' ;
+T9 : ',' ;
+T10 : ')' ;
+T11 : 'int' ;
+T12 : 'char' ;
+T13 : 'void' ;
+T14 : '{' ;
+T15 : '}' ;
+T16 : 'for' ;
+T17 : '=' ;
+T18 : '==' ;
+T19 : '<' ;
+T20 : '+' ;
+
+// $ANTLR src "SimpleC.g" 94
+ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
+ ;
+
+// $ANTLR src "SimpleC.g" 97
+INT : ('0'..'9')+
+ ;
+
+// $ANTLR src "SimpleC.g" 100
+WS : ( ' '
+ | '\t'
+ | '\r'
+ | '\n'
+ )+
+ { $channel=99; }
+ ;