diff --git a/src/lang/compose/compose.ts b/src/lang/compose/compose.ts index 9d50bcf4..c7694311 100644 --- a/src/lang/compose/compose.ts +++ b/src/lang/compose/compose.ts @@ -150,7 +150,7 @@ export function compose( return null } - case "GenrateSymbol": { + case "GenerateSymbol": { env.stack.push({ "@type": "Value", "@kind": "Symbol", diff --git a/src/lang/syntax/matchers/word_matcher.ts b/src/lang/syntax/matchers/word_matcher.ts index d7d13c30..71c44d67 100644 --- a/src/lang/syntax/matchers/word_matcher.ts +++ b/src/lang/syntax/matchers/word_matcher.ts @@ -43,7 +43,7 @@ export function word_matcher(tree: pt.Tree): Word { }), "word:generate_type_var": ({ name }, { span }) => ({ "@type": "Word", - "@kind": "GenrateSymbol", + "@kind": "GenerateSymbol", name: pt.str(name), span, }), diff --git a/src/lang/word/Word.ts b/src/lang/word/Word.ts index 58a44a73..060c187d 100644 --- a/src/lang/word/Word.ts +++ b/src/lang/word/Word.ts @@ -7,7 +7,7 @@ export type Word = | Local | PortPush | PortReconnect - | GenrateSymbol + | GenerateSymbol | Label export type Call = { @@ -54,9 +54,9 @@ export type PortReconnect = { span: Span } -export type GenrateSymbol = { +export type GenerateSymbol = { "@type": "Word" - "@kind": "GenrateSymbol" + "@kind": "GenerateSymbol" name: string span: Span } diff --git a/src/lang/word/formatWord.ts b/src/lang/word/formatWord.ts index c69a52cf..d5985753 100644 --- a/src/lang/word/formatWord.ts +++ b/src/lang/word/formatWord.ts @@ -26,7 +26,7 @@ export function formatWord(word: Word): string { return `${word.portName}-(${word.nodeName})` } - case "GenrateSymbol": { + case "GenerateSymbol": { return `'${word.name}` }