UNPKG

@ordojs/core

Version:

Core compiler and runtime for OrdoJS framework

37 lines 954 B
/** * @fileoverview OrdoJS Lexer - Full implementation for lexical analysis */ import { type TokenStream } from '../types/index.js'; export declare class OrdoJSLexer { private source; private current; private line; private column; private tokens; private filename; private contextStack; constructor(source?: string, filename?: string); tokenize(): TokenStream; private scanToken; private scanString; private scanTemplateString; private scanNumber; private scanIdentifier; private scanHTMLTag; private scanMultiLineComment; private updateContext; private getCurrentContext; private getKeywordType; private match; private advance; private peek; private peekNext; private isAtEnd; private isDigit; private isAlpha; private isAlphaNumeric; private addToken; private getPosition; private throwError; } //# sourceMappingURL=lexer.d.ts.map