ExprAST
API / publicodes / ExprAST
type ExprAST =
| BinaryOp
| UnaryOp
| {
variable: string;
}
| {
constant: {
nodeValue: number;
rawUnit: string;
type: "number";
};
}
| {
constant: {
nodeValue: boolean;
type: "boolean";
};
}
| {
constant: {
nodeValue: string;
type: "string" | "date";
};
};
Defined in: packages/core/src/parseExpression.ts:22
AST of a publicodes expression.