@scalenc/tmt-format
Version:
Library for handling TRUMPF TMT file format.
24 lines (23 loc) • 551 B
TypeScript
import { Token } from './Token';
export declare class Parser {
private source;
private pos;
get isOk(): boolean;
get isAtLineEnd(): boolean;
token: Token | null;
char: string | null;
lineNumber: number;
constructor(source: string);
readRaw(): string;
read(): boolean;
private readLinesUntil;
private readLine;
private readWhile;
private readUntil;
private skipLine;
private readWhitespaces;
private skipComment;
private readNextChar;
private assert;
private makeError;
}