haskell-core-semantics icon indicating copy to clipboard operation
haskell-core-semantics copied to clipboard

Symbols in data constructors

Open ayberkt opened this issue 7 years ago • 0 comments

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.

ayberkt avatar May 24 '17 14:05 ayberkt