17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
|
|
import {Command, ParseContext} from "./command.js";
|
||
|
|
import {LexInput} from "../lexer.js";
|
||
|
|
|
||
|
|
export class Clear extends Command<{}> {
|
||
|
|
isParseCandidate(token: LexInput): boolean {
|
||
|
|
return this.isKeyword(token, 'clear')
|
||
|
|
}
|
||
|
|
|
||
|
|
attemptParse(context: ParseContext): {} {
|
||
|
|
return {}
|
||
|
|
}
|
||
|
|
|
||
|
|
getDisplayName(): string {
|
||
|
|
return 'clear'
|
||
|
|
}
|
||
|
|
}
|