File: test14.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 (27 lines) | stat: -rw-r--r-- 1,136 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
24
25
26
27

metavar termvar , x ::=
{{ isa string }} {{ hol string }} {{ coq nat }} {{ lex alphanum }} {{ com  term variable  }} 

metavar label , l , k ::=
{{ isa string }} {{ hol string }}  {{ coq nat }} {{ lex Alphanum }} {{ com  field label  }} 

indexvar index , i , j , n , m  ::= 
{{ isa nat }} {{ hol num }} {{ coq nat }} {{ lex numeral }} {{ com indices }}

grammar

t :: 't_' ::=                                                      {{ com  term  }}
  | x                                :: :: Var                       {{ com variable }}         
  | \ x . t                          :: :: Lam  (+ bind x in t +)    {{ com abstraction }}      
  | t t'                             :: :: App                       {{ com application }}      
  | '{' l1 = t1 ,  .. , ln = tn '}'  :: :: Rec                       {{ com record }}
  | t . l                            :: :: Proj                      {{ com projection }} 

v :: 'v_' ::= {{ com  values  }}
  | \ x . t                         :: :: Lam  (+ bind x in t +)   {{ com abstraction }}      
  | '{' l1 = v1 ,  .. , ln = vn '}'  :: :: Rec                     

subrules

  v <:: t