Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed GROOVY-3752 by removing the line ". Digits [...]" from the grammar

...

Code Block
IntegerLiteral:
	Base10IntegerLiteral
	HexIntegerLiteral
	OctalIntegerLiteral

Base10IntegerLiteral:
	Base10Numeral IntegerTypeSuffix (optional)

HexIntegerLiteral:
	HexNumeral IntegerTypeSuffix (optional)

OctalIntegerLiteral:
	OctalNumeral IntegerTypeSuffix (optional)

IntegerTypeSuffix: one of
	i I l L g G

Base10Numeral:
	0
	NonZeroDigit Digits (optional)

Digits:
	Digit
	Digits Digit

Digit:
	0
	NonZeroDigit

NonZeroDigit: one of
	\1 2 3 4 5 6 7 8 9

HexNumeral:
	0 x HexDigits
	0 X HexDigits

HexDigits:
	HexDigit
	HexDigit HexDigits

HexDigit: one of
	0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F

OctalNumeral:
	0 OctalDigits

OctalDigits:
	OctalDigit
	OctalDigit OctalDigits

OctalDigit: one of
	0 1 2 3 4 5 6 7


DecimalPointLiteral:
	Digits . Digits ExponentPart (optional) DecimalTypeSuffix (optional)
	. Digits ExponentPart (optional) DecimalTypeSuffix (optional)
	Digits ExponentPart DecimalTypeSuffix (optional) 	Digits ExponentPart (optional) DecimalTypeSuffix (optional)

ExponentPart:
	ExponentIndicator SignedInteger

ExponentIndicator: one of
	e E

SignedInteger:
	Signopt Digits

Sign: one of
	+ -

DecimalTypeSuffix: one of
	f F d D g G