Skip to content

Commit ad1ee01

Browse files
committed
enable hoare and other calculi (naive setting)
1 parent 82a43e3 commit ad1ee01

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
]
5858
},
5959
"devDependencies": {
60+
"ajv": "^7.2.4",
6061
"gh-pages": "^5.0.0"
6162
}
6263
}

src/components/Options.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import * as prog1_static from "../logic/calculi/static_prog1";
99
export const calculiList = [
1010
meta.calculus,
1111
prog1_static.calculus,
12-
// type_conversion.calculus,
13-
// expr_ty.calculus,
14-
// stmt_ty.calculus,
15-
// hoare.calculus,
12+
type_conversion.calculus,
13+
expr_ty.calculus,
14+
stmt_ty.calculus,
15+
hoare.calculus,
1616
];
1717

1818
export let default_options = {

src/logic/calculi/static_semantics_expr.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,16 @@ export const app_renderer: AppDispatchRenderer<string> = {
7676
export const const_renderer: ConstDispatchRenderer<string> = {
7777
"Plus": "+",
7878
"Minus": "-",
79+
80+
"UnEqual": "!=",
81+
// "Unequal": "!=",
82+
"Equal": "==",
83+
"Less": "<",
84+
"LessEqual": "≤",
85+
"Greater": ">",
86+
"GreaterEqual": "≥",
87+
"Div": "/",
88+
"Mul": "*",
89+
// "Addr": "&",
90+
// "Indir": "*",
7991
};

0 commit comments

Comments
 (0)