/** * Formula Parser * * Converts a token stream into an Abstract Syntax Tree (AST). * Implements a Pratt parser (top-down operator precedence) for correct * handling of operator precedence and associativity. * * Excel operator precedence (highest to lowest): * 1. Unary + / - / % * 2. ^ (exponentiation, right-assoc) * 3. * / * 4. + - * 5. & (concatenation) * 6. = <> < > <= >= (comparison) */ import { type AstNode } from "./ast.js"; import { type Token } from "./token-types.js"; export declare function parse(tokens: Token[]): AstNode;