Move Command/Script to broader-scope type

This commit is contained in:
Tangent Wantwight 2023-08-25 12:05:06 -04:00
parent a4e65e567a
commit 6cce5bb6ed
2 changed files with 3 additions and 3 deletions

View file

@ -1,15 +1,13 @@
import { escapeHtml } from "./helpers";
import { AtLeast, Choose, End, Pattern, Regex, Sequence, Use } from "./peg";
import {
Script,
Word as WordType,
TextWord,
EnchantedWord as EnchantedWordType,
SimplifyWord,
} from "./words";
export type Command = WordType[];
export type Script = Command[];
const Comment = Regex(/#[^\n]*/y)
.expects("#")
.map(() => []);

View file

@ -74,3 +74,5 @@ export function SimplifyWord(
}
export type Word = EnchantedWord | TextWord | HtmlWord | InterpolatedWord;
export type Command = Word[];
export type Script = Command[];