Move Command/Script to broader-scope type
This commit is contained in:
parent
a4e65e567a
commit
6cce5bb6ed
2 changed files with 3 additions and 3 deletions
|
@ -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(() => []);
|
||||
|
|
|
@ -74,3 +74,5 @@ export function SimplifyWord(
|
|||
}
|
||||
|
||||
export type Word = EnchantedWord | TextWord | HtmlWord | InterpolatedWord;
|
||||
export type Command = Word[];
|
||||
export type Script = Command[];
|
||||
|
|
Loading…
Reference in a new issue