File: unit.ott

package info (click to toggle)
ott 0.34%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,440 kB
  • sloc: ml: 25,103; makefile: 1,375; awk: 736; lisp: 183; sh: 14; sed: 4
file content (23 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% The TAPL text also introduces sugar
%  | t1 ; t2                       :: S :: [[ (\x:Unit.t2) t1 where x notin FV(t2) ]]


grammar
t :: Tm ::=                                        {{ com terms: }}
  | unit                          ::   :: Unit       {{ com constant [[unit]] }}

v :: Va ::=                                        {{ com values: }}
  | unit                          ::   :: Unit       {{ com unit value }}

T :: Ty ::=                                       {{ com types: }}
  | Unit                          ::   :: Unit      {{ com unit type }}

defns
Jtype :: '' ::= 

defn
G |- t : T :: :: typing :: T_ {{ com Typing }} by


----------------- :: Unit
G |- unit : Unit