deleting interpreter now that we have compiler

This commit is contained in:
Dustin Swan 2026-02-09 13:11:39 -07:00
parent 60c8f74d50
commit 6f7f06b748
No known key found for this signature in database
GPG key ID: 30D46587E2100467
12 changed files with 19 additions and 1677 deletions

View file

@ -1,10 +1,13 @@
import type { Value } from './types';
type LiteralValue =
| { kind: 'int', value: number }
| { kind: 'float', value: number }
| { kind: 'string', value: string };
// Literals and Variables
export type Literal = {
kind: 'literal'
value: Value
value: LiteralValue
line?: number
column?: number
start?: number
@ -198,8 +201,6 @@ export function prettyPrint(ast: AST, indent = 0): string {
return `${i}${val.value}`;
case 'string':
return `${i}"${val.value}"`;
default:
return `${i}${val.kind}`;
}
}