13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
import { TokenKind } from '../parser';
|
|
export declare abstract class Token {
|
|
kind: TokenKind;
|
|
input: string;
|
|
begin: number;
|
|
end: number;
|
|
file?: string | undefined;
|
|
constructor(kind: TokenKind, input: string, begin: number, end: number, file?: string | undefined);
|
|
getText(): string;
|
|
getPosition(): number[];
|
|
size(): number;
|
|
}
|