slight error in proto3 BNF ...

22 views
Skip to first unread message

Daniel Gross

unread,
Jul 29, 2024, 12:05:07 PM7/29/24
to Protocol Buffers
Hello,

I am writing a prolog parser for proto3 and noticed that the optional [-] sign seems duplicated in the floatLit BNF declaration, admiting the following floatLit:

- - 10.10

i.e. two negative signs ...

I think the dash on floatLit should be removed.

Who is the right person to suggest this ...

thanks,

Daniel

floatLit = [-] ( decimals "." [ decimals ] [ exponent ] | decimals exponent | "."decimals [ exponent ] ) | "inf" | "nan" decimals = [-] decimalDigit { decimalDigit }
Reply all
Reply to author
Forward
0 new messages