Commit 08dcf3fc authored by Martti Käärik's avatar Martti Käärik Committed by Philip Makedonski
Browse files

Added rules for literal int and boolean

parent 5f57b987
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -538,7 +538,7 @@ OmitValue returns tdl::OmitValue:

LiteralValueUse returns tdl::LiteralValueUse:
    {tdl::LiteralValueUse}
    value=LiteralValue
    (value=STRING | intValue=BIGINTEGER | boolValue=BOOLEAN)
    //TODO: ambiguity if type? value -> temporary solution
    //TODO: add option to have the type after wards without any keyword e.g. 100 s?
//    (dataType=[tdl::DataType|Identifier])?
@@ -1297,8 +1297,16 @@ RBrace:
    END
;

BIGINTEGER returns ecore::EBigInteger:
	INT
;

//## Terminals

terminal BOOLEAN returns ecore::EBoolean:
	'true' | 'false'
;
    
// The following synthetic tokens are used for the indentation-aware blocks -> moved to extended grammar
//terminal BEGIN: 'synthetic:BEGIN';  // increase indentation
//terminal END: 'synthetic:END';      // decrease indentation