UNPKG

simc-ast-builder

Version:

Parser and AST generator for SimulationCraft files

27 lines 758 B
import { ASTNode, OptimizerOptions } from "../types"; /** * Main parser class for SimC files */ export declare class Parser { private optimizer; /** * Create a new Parser instance * @param optimizerOptions Options for the condition optimizer */ constructor(optimizerOptions?: OptimizerOptions); /** * Parse a SimC string and return the AST * * @param input - The SimC code to parse * @returns The parsed AST node */ parse(input: string): ASTNode; /** * Parse a SimC string and optimize the resulting AST * * @param input - The SimC code to parse * @returns The optimized AST node */ parseAndOptimize(input: string): ASTNode; } //# sourceMappingURL=Parser.d.ts.map