ENTITY_DECL
: 'BEGIN_ENTITY' ( options {greedy=false;} : . )* 'END_ENTITY' SEMI
;
PROCEDURE_DECL
: 'PROCEDURE' ( options {greedy=false;} : . )* 'END_PROCEDURE' SEMI
;
TYPE_DECL
: 'TYPE' ( options {greedy=false;} : . )* 'END_TYPE' SEMI
;
SUBTYPE_CONSTRAINT_DECL
: 'SUBTYPE_CONSTRAINT' ( options {greedy=false;} : . )*
'END_SUBTYPE_CONSTRAINT' SEMI
;
RULE_DECL
: 'RULE' ( options {greedy=false;} : . )* 'END_RULE' SEMI
;
CONSTANT_DECL
: 'CONSTANT' ( options {greedy=false;} : . )* 'END_CONSTANT'
;
REFERENCE_CLAUSE
: 'REFERENCE' 'FROM' ( options {greedy=false;} : . )* SEMI
;
USE_CLAUSE
: 'USE' 'FROM' ( options {greedy=false;} : . )* SEMI
;
COMMENT
: '(*'
{
$channel=HIDDEN;
}
( ~('('|'*')
| ('(' ~'*') => '('
| ('*' ~')') => '*'
| COMMENT
)*
'*)'
;
LINECOMMENT
:
'--' ( ~('\n'|'\r') )*
{ $channel=HIDDEN; }
;
SEMI
: ';'
;
LPAREN
: '('
;
RPAREN
: ')'
;
LBRACK
: '['
;
RBRACK
: ']'
;
LCURLY
: '{'
;
RCURLY
: '}'
;
STRING
:
'\''
(~'\'')*
'\''
;
WS
: ( ' '
| '\f'
| '\t'
| ( '\r\n' // Evil Dos
| '\n\r' // Unknown
| '\n' // Unix
| '\r' // Macintosh
)
)
{ $channel=HIDDEN; }
;
IDENT
: ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*
;
//==========================================
The size of this generated .c file is so so so large.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address