diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-06-27 09:18:50 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-06-27 09:18:50 +0000 |
| commit | 5c713d8f027a9b6be687ee3f7e917e8bd2115773 (patch) | |
| tree | 65da19829810b753345a5b2164bef2d8876268dd /old-examples/unix/UnixEng.gf | |
| parent | f7b2a83059697f1b36a6369e489ac276e7ff875d (diff) | |
took away old-examples
Diffstat (limited to 'old-examples/unix/UnixEng.gf')
| -rw-r--r-- | old-examples/unix/UnixEng.gf | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/old-examples/unix/UnixEng.gf b/old-examples/unix/UnixEng.gf deleted file mode 100644 index 5b0ca944f..000000000 --- a/old-examples/unix/UnixEng.gf +++ /dev/null @@ -1,43 +0,0 @@ ---# -path=.:prelude - -concrete UnixEng of Unix = CharEng ** open Prelude in { - - flags lexer=text ; - -{- - lincat - Line ; - [Command] {1} ; - Command ; - File ; --} - - lin - CommWords w = w ; - - Redirect = infixSS (optStr "and" ++ ["write the result to"]) ; - Pipe = infixSS "then" ; - Comm c = c ; - - WhatTime = ss ["what time is it"] ; - WhatDate = ss ["what date is it"] ; - WhereNow = ss ["where am I now"] ; - Remove = prefixSS "remove" ; - Copy x y = ss ("copy" ++ x.s ++ "to" ++ y.s) ; - Linecount = prefixSS ["how many lines has"] ; - Wordcount = prefixSS ["how many words has"] ; - Grep x y = ss (["show the lines containing"] ++ x.s ++ "in" ++ y.s) ; - Cat = prefixSS ["show the contents of"] ; - - It = ss "it" ; - - FileChars = prefixSS (optStr ["the file"]) ; - WordChars = prefixSS (optStr ["the word"]) ; - - FileSuffix = prefixSS ["all files ending with"] ; - FilePrefix = prefixSS ["all files beginning with"] ; - - BaseWord w = w ; - ConsWord = infixSS "space" ; - -} |
