UNPKG

529 BJavaScriptView Raw
1"use strict";
2/*
3import { Expression } from "./ast";
4import { parseExpression } from "./parse"
5
6const str: string = "15 < x && x < 20"; // Read DOM for student input
7const exp: Expression = parseExpression(str);
8
9function grade() {
10
11
12 if (exp.tag !== "LogicalExpression") {
13 return "notabinop";
14 } else if (exp.operator === "||") {
15 return "usesor"
16 } else if (exp.left.tag !== "BinaryExpression" || exp.right.tag !== "BinaryExpression") {
17 return "A";
18 }
19} */
20//# sourceMappingURL=scratch.js.map
\No newline at end of file