File: test18.1.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 (45 lines) | stat: -rw-r--r-- 1,045 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% test18.1.ott  dot form test 
% 
% nested dot forms in symterms

metavar termvar, x ::=
  {{ isa string }} {{ coq nat }} {{ coq-equality }} {{ hol string }}
  {{ tex \mathit{[[termvar]]} }} {{ com  term variable  }} 

indexvar index, n, m ::= {{ isa nat }} {{ coq nat }} {{ hol num }}

  grammar

    a :: 'a_' ::= 
      | AA            :: :: AA
      | C a1 .. an    :: :: C
      | D x a1 .. an    :: :: D
      | ( a )         :: M :: paren  {{ ich [[a]] }} {{ ocaml [[a]] }}

  terminals :: 'terminals_' ::=
    | |-                  ::   :: turnstile  {{ tex \vdash }}


defns
  Jtype :: '' ::= 

defn
    |- a  :: :: Foo :: Foo_ by
        
    --------------------------------- :: 1C
    |- C a1 .. an


    --------------------------------- :: 1D
    |- D x a1 .. an

    --------------------------------- :: 2
    |- C (D x1 a1 .. an) .. (D xm a1 .. an)


% Note that the following is not parsable, as no index varies for the outer
% list form
%
%    --------------------------------- :: 3
%    |- C (D x a1 .. an) .. (D x a1 .. an)