blob: d840a2e299193895dfd0a0fcd09f0aef77e6e30b [file] [log] [blame]
grammar org.eclipse.amp.amf.abase.ABase with org.eclipse.xtext.common.Terminals
generate aBase "http://www.eclipse.org/amp/amf/abase/ABase"
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
Value :
IntValue|StringValue|RealValue|BooleanValue;
IntValue :
value=INTEGER;
RealValue :
value=REAL;
StringValue :
value=STRING;
BooleanValue :
value=BOOLEAN;
enum BOOLEAN :
TRUE = "true" | FALSE = "false";
terminal INTEGER :
"-"? ('0'..'9')+;
terminal REAL :
"-"? ('0'..'9')* "." ('0'..'9')*;
terminal DESC_STRING :
'«' ( '\\' ('b'|'t'|'n'|'f'|'r'|'«'|"»"|'\\') | !('\\'|'«'|'»') )* '»';