summaryrefslogtreecommitdiff
path: root/old-examples/unix/UnixUni.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-06-27 09:18:50 +0000
committeraarne <aarne@cs.chalmers.se>2008-06-27 09:18:50 +0000
commit5c713d8f027a9b6be687ee3f7e917e8bd2115773 (patch)
tree65da19829810b753345a5b2164bef2d8876268dd /old-examples/unix/UnixUni.gf
parentf7b2a83059697f1b36a6369e489ac276e7ff875d (diff)
took away old-examples
Diffstat (limited to 'old-examples/unix/UnixUni.gf')
-rw-r--r--old-examples/unix/UnixUni.gf43
1 files changed, 0 insertions, 43 deletions
diff --git a/old-examples/unix/UnixUni.gf b/old-examples/unix/UnixUni.gf
deleted file mode 100644
index b1b220824..000000000
--- a/old-examples/unix/UnixUni.gf
+++ /dev/null
@@ -1,43 +0,0 @@
---# -path=.:prelude
-
-concrete UnixUni of Unix = CharUni ** open Prelude in {
-
- flags unlexer=bind ;
-
-{-
- lincat
- Line ;
- [Command] {1} ;
- Command ;
- File ;
--}
-
- lin
- CommWords w = w ;
-
- Redirect = infixSS ">" ;
- Pipe = infixSS "|" ;
- Comm c = c ;
-
- WhatTime = ss ["date +%D"] ;
- WhatDate = ss ["date +%T"] ;
- WhereNow = ss ["pwd"] ;
- Remove = prefixSS "rm" ;
- Copy x y = ss ("cp" ++ x.s ++ y.s) ;
- Linecount = prefixSS ["wc -l"] ;
- Wordcount = prefixSS ["wc -w"] ;
- Grep x y = ss ("grep" ++ x.s ++ y.s) ;
- Cat = prefixSS "cat" ;
-
- It = ss [] ;
-
- FileChars c = c ;
- WordChars c = c ;
-
- FileSuffix = prefixSS ["* &+"] ;
- FilePrefix = postfixSS ["&+ *"] ;
-
- BaseWord w = w ;
- ConsWord = cc2 ;
-
-}