slige/compiler/token.ts

15 lines
229 B
TypeScript
Raw Normal View History

2024-11-01 12:21:40 +01:00
export type Token = {
type: string;
pos: Pos;
length: number;
identValue?: string;
intValue?: number;
stringValue?: string;
};
export type Pos = {
index: number;
line: number;
col: number;
};