slige/compiler/token.ts
2024-12-10 21:42:15 +01:00

15 lines
229 B
TypeScript

export type Token = {
type: string;
pos: Pos;
length: number;
identValue?: string;
intValue?: number;
stringValue?: string;
};
export type Pos = {
index: number;
line: number;
col: number;
};