From 911be3f2edb8bd9df0fd92a8eab4d9b96d8153fe Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 9 Oct 2020 18:41:03 +0200 Subject: [PATCH] Removes some commas from grammar file. --- grammar.ebnf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;