From 67901fa91fd11b5a0e751efcae90e33bd1ccdb9d Mon Sep 17 00:00:00 2001 From: Garrett Mills Date: Mon, 2 Mar 2026 22:21:59 -0600 Subject: [PATCH] Remove tail command stub --- src/vm/commands/index.ts | 2 -- src/vm/commands/tail.ts | 31 ------------------------------- 2 files changed, 33 deletions(-) delete mode 100644 src/vm/commands/tail.ts diff --git a/src/vm/commands/index.ts b/src/vm/commands/index.ts index 3df50c1..848ef12 100644 --- a/src/vm/commands/index.ts +++ b/src/vm/commands/index.ts @@ -43,7 +43,6 @@ import {Each} from "./each.js"; import {Words} from "./words.js"; import {Drop} from "./drop.js"; import {Sort} from "./sort.js"; -import {Tail} from "./tail.js"; export type Commands = Command[] export const commands: Commands = [ @@ -83,7 +82,6 @@ export const commands: Commands = [ new Sort, new Split, new Suffix, - new Tail, new To, new Trim, new Undo, diff --git a/src/vm/commands/tail.ts b/src/vm/commands/tail.ts deleted file mode 100644 index 0701e68..0000000 --- a/src/vm/commands/tail.ts +++ /dev/null @@ -1,31 +0,0 @@ -import {Command, ParseContext, StrTerm} from "./command.js"; -import {LexInput} from "../lexer.js"; -import {StrVM} from "../vm.js"; -import {Lines} from "./lines.js"; -import {Words} from "./words.js"; -import {Join} from "./join.js"; -import {Awaitable} from "../../util/types.js"; - -export type TailData = { - length?: StrTerm, -} - -export class Tail extends Command { - attemptParse(context: ParseContext): Awaitable { - return { - length: context.popOptionalTerm(), - } - } - - getDisplayName(): string { - return 'tail' - } - - isParseCandidate(token: LexInput): boolean { - return this.isKeyword(token, 'tail') - } - - async execute(vm: StrVM, data: TailData): Promise { - return vm - } -}