digital watch works
This commit is contained in:
parent
639a296075
commit
6202934ac4
9 changed files with 87 additions and 55 deletions
|
|
@ -19,6 +19,7 @@ const BINARY_OPERATOR_MAP: Map<string, (a: any, b: any) => any> = new Map([
|
|||
[">=", (a, b) => a >= b],
|
||||
["<", (a, b) => a < b],
|
||||
[">", (a, b) => a > b],
|
||||
["%", (a, b) => a % b],
|
||||
]);
|
||||
|
||||
export function evalExpr(expr: Expression, environment: Environment): any {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue