Type constructors
This commit is contained in:
parent
635f12490d
commit
668ee3e4d8
4 changed files with 50 additions and 17 deletions
|
|
@ -221,8 +221,8 @@ function compilePattern(pattern: Pattern, expr: string): { condition: string, bi
|
|||
}
|
||||
}
|
||||
|
||||
export function compileAndRun(defs: Definition[]) {
|
||||
typecheck(defs);
|
||||
export function compileAndRun(defs: Definition[], typeDefs: TypeDefinition[] = []) {
|
||||
typecheck(defs, typeDefs);
|
||||
|
||||
const compiledDefs: string[] = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue