1
0
forked from GitHub/gf-core

extended unix grammars with character-based spelling

This commit is contained in:
aarne
2006-04-13 14:19:27 +00:00
parent 256b593ae5
commit 3d7c4e80d7
10 changed files with 271 additions and 31 deletions

View File

@@ -1,24 +1,43 @@
abstract Unix = {
abstract Unix = Char ** {
cat
S ;
Line ;
Command ;
File ;
S ; -- whole command line
Command ; -- one command
File ; -- file name
Word ; -- string e.g. in grep
[Word] {1} ; --
fun
Pipe : Command -> S -> S ;
Comm : Command -> S ;
-- Catch-all: command dictated letter by letter.
CommWords : [Word] -> Command ;
-- General command-line structure.
Redirect : S -> File -> S ; -- cs >f
Pipe : S -> Command -> S ; -- cs | c
Comm : Command -> S ; -- c
--- This would be cool, but is it supported by speech recognition?
--- CommOpt : (c : Command) -> [Option c] -> S ; -- c -o -k
WhatTime : Command ;
WhatDate : Command ;
WhereNow : Command ;
Remove : File -> Command ;
Copy : File -> File -> Command ;
Linecount : File -> Command ;
Wordcount : File -> Command ;
Remove : File -> Command ;
Copy : File -> File -> Command ;
Linecount : File -> Command ;
Wordcount : File -> Command ;
Grep : Word -> File -> Command ;
Cat : File -> Command ;
Name : String -> File ;
It : File ;
It : File ; -- no file name - contents received from pipe
FileChars : [Chr] -> File ;
WordChars : [Chr] -> Word ;
FileSuffix : Word -> File ; -- *suff
FilePrefix : Word -> File ; -- pref*
}