Skip to content

Grammer for Map and List is incorrect #19

@TotallyNotChase

Description

@TotallyNotChase

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions