Add & register more basic commands
This commit is contained in:
16
src/vm/commands/clear.ts
Normal file
16
src/vm/commands/clear.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user