1 | ;
|
2 | /*
|
3 | import { Expression } from "./ast";
|
4 | import { parseExpression } from "./parse"
|
5 |
|
6 | const str: string = "15 < x && x < 20"; // Read DOM for student input
|
7 | const exp: Expression = parseExpression(str);
|
8 |
|
9 | function 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 |