diff --git a/grammar.ebnf b/grammar.ebnf index 5ccb88d..1198841 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -17,13 +17,13 @@ binary_digit ::= '0' | '1'; character ::= letter | digit | '_' ; -identifier ::= (letter | '_'), { character }; +identifier ::= (letter | '_') { character }; -float ::= digit { digit }, '.', digit, {digit}; -dec_integer ::= ['0D' | '0d'], digit, {digit}; -hex_integer ::= ('0X'|'0x'), hexadecimal_digit, {hexadecimal_digit}; -octal_integer ::= ('0O'|'0o'), octal_digit, {octal_digit}; -binary_integer ::= ('0B'|'0b'), binary_digit, {binary_digit}; +float ::= digit { digit } '.' digit {digit}; +dec_integer ::= ['0D' | '0d'] digit {digit}; +hex_integer ::= ('0X'|'0x') hexadecimal_digit {hexadecimal_digit}; +octal_integer ::= ('0O'|'0o') octal_digit {octal_digit}; +binary_integer ::= ('0B'|'0b') binary_digit {binary_digit}; integer ::= dec_integer | hex_integer | octal_integer | binary_integer; number ::= integer | float;