import {Command, CommandData, ParseContext, StrLVal} from "./command.js"; import {Executable} from "../parse.js"; import {LexInput} from "../lexer.js"; export type WordData = { exec: Executable, } export class Word extends Command { async attemptParse(context: ParseContext): Promise { return { exec: await context.popExecutable(), } } getDisplayName(): string { return 'word' } isParseCandidate(token: LexInput): boolean { return this.isKeyword(token, 'word') } }