Skip to content

Symbols in data constructors #3

@ayberkt

Description

@ayberkt

We have defined the DataCon sort in the K grammar as

syntax DataCon ::= "dataCon" "(" Name ")"

where Name is just Id. With this, constructor names consisting of symbols such as : or [] cannot be parsed. For example, kast test/core/Map.pkore yields

[Error] Inner Parser: Parse error: unexpected character '['.
	Source(/Users/ayberkt/Developer/haskell-core-semantics/./test/core/Map.pkore)
	Location(1,227,1,228)

We should fix this soon.

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