mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
unix command grammar started
This commit is contained in:
24
examples/unix/Unix.gf
Normal file
24
examples/unix/Unix.gf
Normal file
@@ -0,0 +1,24 @@
|
||||
abstract Unix = {
|
||||
|
||||
cat
|
||||
S ;
|
||||
Line ;
|
||||
Command ;
|
||||
File ;
|
||||
|
||||
fun
|
||||
Pipe : Command -> S -> S ;
|
||||
Comm : Command -> S ;
|
||||
|
||||
WhatTime : Command ;
|
||||
WhatDate : Command ;
|
||||
WhereNow : Command ;
|
||||
Remove : File -> Command ;
|
||||
Copy : File -> File -> Command ;
|
||||
Linecount : File -> Command ;
|
||||
Wordcount : File -> Command ;
|
||||
|
||||
Name : String -> File ;
|
||||
It : File ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user