interpreting lists, records, constructors
This commit is contained in:
parent
1d0f1d5423
commit
b5bd084ee4
3 changed files with 30 additions and 6 deletions
10
src/ast.ts
10
src/ast.ts
|
|
@ -63,6 +63,11 @@ export type Pattern =
|
|||
|
||||
// Data Structures
|
||||
|
||||
export type List = {
|
||||
kind: 'list'
|
||||
elements: AST[]
|
||||
}
|
||||
|
||||
export type Record = {
|
||||
kind: 'record'
|
||||
fields: { [key: string]: AST }
|
||||
|
|
@ -80,11 +85,6 @@ export type RecordUpdate = {
|
|||
updates: { [key: string]: AST }
|
||||
}
|
||||
|
||||
export type List = {
|
||||
kind: 'list'
|
||||
elements: AST[]
|
||||
}
|
||||
|
||||
// Top-level constructs
|
||||
|
||||
export type Definition = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue