This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend saw-core parser with syntax for nested-record constructors
The syntax "{ label = x | r }" denotes the record "r" extended with a field named "label" with value "x". Similarly, "#{ label :: a | t }" denotes the record type "t" extended with a field named "label" of type "a". A parenthesized expression of type String may be used in place of a label, such as "{ (s) = x | r }". This makes it possible to dynamically construct records with arbitrary field names. This syntax can also be used with ordinary record expressions like "{ (s) = x, b = y }" or with record selectors like "r.(s)".
- Loading branch information
Brian Huffman
committed
Sep 25, 2015
1 parent
e25eca2
commit b50d42e
Showing
2 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters