You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data ::= "data" ( Sigma | List | Map | Integer | ByteString )
List ::= "[" Data* "]"
Map ::= "{" ( Data "=" Data )* "}"
Which suggests that { data 1 = data 5 } would be a valid Map, and [ data 1 ] would be a valid List. However, the parser doesn't actually expect the data keyword, it just expects the data literal.
If the parse behavior is intentional, then the grammer needs to be updated. If the grammer is correct, then the parse behavior should be updated.
The text was updated successfully, but these errors were encountered:
TotallyNotChase
changed the title
Grammer for Map is incorrect
Grammer for Map and List is incorrect
Dec 10, 2021
The syntax grammer notes-
Which suggests that
{ data 1 = data 5 }
would be a validMap
, and[ data 1 ]
would be a validList
. However, the parser doesn't actually expect thedata
keyword, it just expects the data literal.If the parse behavior is intentional, then the grammer needs to be updated. If the grammer is correct, then the parse behavior should be updated.
The text was updated successfully, but these errors were encountered: