UNPKG

simc-ast-builder

Version:

Parser and AST generator for SimulationCraft files

26 lines 928 B
import { MinMaxExprContext } from "../../../../antlr4/SimCExprParser"; import { ExpressionNode } from "../../common-types"; import { ContextHandlerFn } from "../BaseHandler"; /** * Specialized node type for min/max expressions */ interface MinMaxExpressionNode extends ExpressionNode { function: "min" | "max"; left: ExpressionNode; nodeType: "minOrMax"; right: ExpressionNode; } /** * Handler for max expressions */ declare const handleMaxExpr: ContextHandlerFn<MinMaxExpressionNode, MinMaxExprContext>; /** * Handler for min expressions */ declare const handleMinExpr: ContextHandlerFn<MinMaxExpressionNode, MinMaxExprContext>; /** * Generic handler for min/max expressions */ declare const handleMinMaxExpr: ContextHandlerFn<MinMaxExpressionNode, MinMaxExprContext>; export { handleMaxExpr, handleMinExpr, handleMinMaxExpr, type MinMaxExpressionNode, }; //# sourceMappingURL=MinMaxExprHandler.d.ts.map