Skip to content

Commit

Permalink
Disallow leading zeroes in UNSIGNED_INT (fixes #87)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Feb 18, 2024
1 parent 5692311 commit 1dea9e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion other-notations/YARSpg.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ OPTIONAL ::= ( 'O' | 'o' ) ( 'P' | 'p' ) ( 'T' | 't' ) ( 'I' | 'i' ) ( 'O' | 'o'
COMMENT ::= '#' [^#xd#xa#xc]*
STR ::= '"' ( [^#x22#x5C#xd#xa] | '\' [tbnrf#x22#x27#x5C])* '"' /* #x22=" #x5C=\ #xD=carriage return #xA=new line #x27='; */
UNSIGNED_INT
::= [0-9]+
::= '0' | [1-9] [0-9]*
ALNUMPLUS
::= [a-zA-Z_] [a-zA-Z0-9_]*
WS ::= [ #x9#xa]+
2 changes: 1 addition & 1 deletion yarspg/YARSpg.g4
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ STR
;
UNSIGNED_INT
: [0-9]+
: '0' | [1-9] [0-9]*
;
ALNUMPLUS
Expand Down

0 comments on commit 1dea9e3

Please sign in to comment.