Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammer for Map and List is incorrect #19

Open
TotallyNotChase opened this issue Dec 7, 2021 · 0 comments
Open

Grammer for Map and List is incorrect #19

TotallyNotChase opened this issue Dec 7, 2021 · 0 comments

Comments

@TotallyNotChase
Copy link
Contributor

TotallyNotChase commented Dec 7, 2021

The syntax grammer notes-

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.

@TotallyNotChase TotallyNotChase changed the title Grammer for Map is incorrect Grammer for Map and List is incorrect Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant