Regex Pattern for DEC
Regex Pattern for DEC
terminal fragment DEC: '-'? DIGIT+ (('e'|'E') ('+'|'-')? DIGIT+)? (('b'|'B')('i'|'I'|'d'|'D') | ('l'|'L'|'d'|'D'|'f'|'F'))?;
Regex Pattern for PositiveIntegerLiteral
Regex Pattern for PositiveIntegerLiteral
PositiveIntegerLiteral returns PositiveIntegerLiteral: DIGITS;
Regex Pattern for FLOAT
Regex Pattern for FLOAT
LiteralFloat returns LiteralFloat: {LiteralFloat} float=FLOAT; terminal FLOAT returns FloatDataType: '-'? (DIGIT+ '.' DIGIT+) (('e' | 'E') ('+' | '-')? DIGIT+)?;
Regex Pattern for HEX
Regex Pattern for HEX
terminal fragment HEX: ('0x'|'0X') (HEX_DIGIT|'_')+ ('#' (('b'|'B')('i'|'I') | ('l'|'L')))?;
Regex Pattern for RATIONAL
Regex Pattern for RATIONAL
LiteralRational returns LiteralRational: {LiteralRational} rational=RationalDataType; RationalDataType returns RationalDataType: RATIONAL; terminal RATIONAL returns RationalDataType: '-'? DIGIT+ '/' DIGIT+;
Regex Pattern for REAL
Regex Pattern for REAL
LiteralRational returns LiteralRational: {LiteralRational} rational=RationalDataType; RationalDataType returns RationalDataType: RATIONAL; terminal RATIONAL returns RationalDataType: '-'? DIGIT+ '/' DIGIT+;
A string representation of a literal value of some kind
A non-empty LiteralValue if v matches the syntax of a LiteralDecimal LiteralDecimal returns LiteralDecimal: {LiteralDecimal} decimal=DIGITS | decimal=DECIMAL;
A string representation of a literal value of some kind
A non-empty LiteralValue if v matches the syntax of a LiteralFloat
A string representation of a literal value of some kind
A non-empty LiteralValue if v matches the syntax of a LiteralRational
A string representation of a literal value of some kind
A non-empty LiteralValue if v matches the syntax of a LiteralReal
Xtext grammar: LiteralNumber : LiteralReal | LiteralRational | LiteralFloat | LiteralDecimal;