~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to src/core/Thierry/Core.cf

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-08-05 06:38:12 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140805063812-io8e77niomivhd49
Tags: 2.4.0.2-1
* [6e140ac] Imported Upstream version 2.4.0.2
* [2049fc8] Update Build-Depends to match control
* [93dc4d4] Install the new primitives
* [e48f40f] Fix typo dev→doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
---  Core Syntax ---
2
 
 
3
 
--layout "where";
4
 
 
5
 
Module.   Program   ::= [Decl] ;
6
 
terminator Decl ";" ;
7
 
 
8
 
 
9
 
ELam.     Exp    ::= "\\" Ident "->" Exp ;
10
 
EFun.     Exp    ::= "(" Ident ":" Exp ")" "->" Exp ;
11
 
Efun.     Exp    ::= "[" [Branch] "]" ;
12
 
 
13
 
EApp.     Exp1   ::= Ident  [Exp2] ;        -- with arguments
14
 
 
15
 
ESet.     Exp2   ::= "Set" ;
16
 
EIdent.   Exp2   ::= Ident ;                 -- without arguments
17
 
 
18
 
separator nonempty Exp2 "" ;
19
 
coercions Exp 2 ;
20
 
 
21
 
 
22
 
Bcon. Branch    ::= Ident "->" Exp ;
23
 
separator Branch "|" ;
24
 
 
25
 
Var.  Decl    ::= Ident ":" Exp ;
26
 
 
27
 
 
28
 
Def.  Decl    ::= "def" Ident ":" Exp "=" Exp ;
29
 
 
30
 
 
31
 
 
32
 
DefRec.    Decl        ::= "fun" Ident ":" Exp "=" Exp ;
33
 
 
34
 
 
35
 
 
36
 
 
37
 
Data.   Decl     ::= "data" Ident "(" [VDecl] ")" "where" "[" [ConstrDecl] "]" ;
38
 
CDcon.    ConstrDecl::= Ident ":" Exp ;
39
 
separator ConstrDecl "|" ;
40
 
Vcon.    VDecl::= Ident ":" Exp ;
41
 
separator VDecl "," ;
42
 
comment "--" ;
43
 
comment "{-" "-}" ;
44