diff options
| author | aarne <aarne@cs.chalmers.se> | 2006-04-12 21:14:32 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2006-04-12 21:14:32 +0000 |
| commit | e07d9dea344e79bfa90def98d965d422b288f600 (patch) | |
| tree | 61a8b0c4304bca3dc82157197b660b347f3e8953 /examples/unix/Unix.gf | |
| parent | a42a232c5756593e0681598f940c84f555af09d8 (diff) | |
unix command grammar started
Diffstat (limited to 'examples/unix/Unix.gf')
| -rw-r--r-- | examples/unix/Unix.gf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/unix/Unix.gf b/examples/unix/Unix.gf new file mode 100644 index 000000000..c1ddd742b --- /dev/null +++ b/examples/unix/Unix.gf @@ -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 ; + +} |
