From b1402e8bd6a68a891b00a214d6cf184d66defe19 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 22 Sep 2003 13:16:55 +0000 Subject: Founding the newly structured GF2.0 cvs archive. --- grammars/prelude/Predef.gf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 grammars/prelude/Predef.gf (limited to 'grammars/prelude/Predef.gf') diff --git a/grammars/prelude/Predef.gf b/grammars/prelude/Predef.gf new file mode 100644 index 000000000..a91681af6 --- /dev/null +++ b/grammars/prelude/Predef.gf @@ -0,0 +1,25 @@ +-- predefined functions for concrete syntax, defined in AppPredefined.hs + +resource Predef = { + + -- this type is for internal use only + param PBool = PTrue | PFalse ; + + -- these operations have their definitions in AppPredefined.hs + oper Int : Type = variants {} ; ---- + + oper length : Tok -> Int = variants {} ; + oper drop : Int -> Tok -> Tok = variants {} ; + oper take : Int -> Tok -> Tok = variants {} ; + oper tk : Int -> Tok -> Tok = variants {} ; + oper dp : Int -> Tok -> Tok = variants {} ; + oper eqInt : Int -> Int -> PBool = variants {} ; + oper plus : Int -> Int -> Int = variants {} ; + + oper eqStr : Tok -> Tok -> PBool = variants {} ; + oper eqTok : (P : Type) -> P -> P -> PBool = variants {} ; + oper show : (P : Type) -> P -> Tok = variants {} ; + oper read : (P : Type) -> Tok -> P = variants {} ; + + } ; + -- cgit v1.2.3