Implement basic integer math operations

This commit is contained in:
2026-08-01 13:50:24 -05:00
parent e728c3fdfa
commit 6e0eb2786e
8 changed files with 521 additions and 166 deletions

View File

@@ -60,9 +60,15 @@ import {Convert} from "./convert.js";
import {While} from "./while.js";
import {Table} from "./table.js";
import {Push} from "./push.js";
import {Plus} from "./plus.js";
import {Minus} from "./minus.js";
import {Times} from "./times.js";
import {Divide} from "./divide.js";
import {Abs} from "./abs.js";
export type Commands = Command<CommandData>[]
export const commands: Commands = [
new Abs,
new Assign,
new Call,
new Chunk,
@@ -71,6 +77,7 @@ export const commands: Commands = [
new Contains,
new Convert,
new Copy,
new Divide,
new Drop,
new Each,
new Edit,
@@ -91,11 +98,13 @@ export const commands: Commands = [
new Load,
new Lower,
new LSub,
new Minus,
new Missing,
new On,
new OutFile,
new Over,
new Paste,
new Plus,
new Prefix,
new Push,
new Quote,
@@ -113,6 +122,7 @@ export const commands: Commands = [
new Suffix,
new Table,
new Take,
new Times,
new To,
new Trim,
new Undo,