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