15 lines
229 B
TypeScript
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;
|
||
|
};
|