-
Notifications
You must be signed in to change notification settings - Fork 0
/
grammar.txt
34 lines (20 loc) · 1.07 KB
/
grammar.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
line : ADMIT thm | PROVE thm | VAR stmt | QED EOL | COMMENT EOL | EOL
________________________________
thm : VAR COLON hypo_list INFERS expr EOL
| RULE COLON hypo_list INFERS expr EOL
| VAR COLON INFERS expr EOL
| RULE COLON INFERS expr EOL
hypo_list : hypo_list COMMA VAR COLON expr | VAR COLON expr
________________________________
stmt : SCOPE stmt | expr SQUARE_OPEN reason SQUARE_CLOSE
reason : ASSN | HYPO VAR
| BY VAR COMMA USING CURLY_OPEN assign_list CURLY_CLOSE
| BY RULE COMMA USING CURLY_OPEN assign_list CURLY_CLOSE
assign_list : assign_list COMMA VAR COLON VAR | VAR COLON VAR
________________________________
expr : NOT expr | expr OR expr | expr AND expr | expr THEN expr | expr IFF expr
| VAR | ROUND_OPEN expr ROUND_CLOSE
predicate : VAR
| VAR ROUND_OPEN var_list ROUND_OPEN
| QUANT VAR
var_list : var_list COMMA VAR | VAR