Skip to content

Commit

Permalink
Fixed CLI command for evaluating expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeshecdom committed Jan 9, 2025
1 parent 4f8bc13 commit b8ec36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import {
idText,
isSelfId,
} from "./grammar/ast";
import { AstUtil, divFloor, modFloor } from "./optimizer/util";
import { AstUtil, divFloor, getAstUtil, modFloor } from "./optimizer/util";
import {
getStaticConstant,
getStaticFunction,
Expand Down Expand Up @@ -691,7 +691,7 @@ export function parseAndEvalExpression(
sourceCode: string,
ast: FactoryAst = getAstFactory(),
parser: Parser = getParser(ast, defaultParser),
util: AstUtil,
util: AstUtil = getAstUtil(ast),
): EvalResult {
try {
const ast = parser.parseExpression(sourceCode);
Expand Down

0 comments on commit b8ec36f

Please sign in to comment.