UNPKG

@ordojs/core

Version:

Core compiler and runtime for OrdoJS framework

40 lines 928 B
/** * @fileoverview Simplified OrdoJS Parser for testing */ import { type ComponentAST, type TokenStream } from '../types/index.js'; /** * Parser configuration options */ interface ParserOptions { allowRecovery: boolean; maxErrors: number; strictMode: boolean; } /** * Simplified OrdoJS Parser for testing */ export declare class OrdoJSParser { private tokens; private errors; private options; private filename?; constructor(tokens: TokenStream, options?: Partial<ParserOptions>, filename?: string); /** * Parse the token stream into a ComponentAST */ parse(): ComponentAST; /** * Create a simple markup block for testing */ private createSimpleMarkupBlock; /** * Create a source range */ private createRange; /** * Get parsing errors */ getErrors(): any[]; } export {}; //# sourceMappingURL=parser-simplified.d.ts.map