slige/compiler/Token.ts
2024-11-18 10:23:48 +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;
};