summaryrefslogtreecommitdiff
path: root/src-3.0/GF/Command/GFShell.cf
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@chalmers.se>2008-06-05 07:33:42 +0000
committerkr.angelov <kr.angelov@chalmers.se>2008-06-05 07:33:42 +0000
commit4803fb8052caba0421949c9d7768d44ec28d109d (patch)
tree669ab3dcc40cca9a91cd9220c366677ce1db8bdb /src-3.0/GF/Command/GFShell.cf
parent0b1a157222e0f96b9c9d6f8cea98caf547c4bdf9 (diff)
use parser combinators to parse the shell commands. simplified CommandLine type
Diffstat (limited to 'src-3.0/GF/Command/GFShell.cf')
-rw-r--r--src-3.0/GF/Command/GFShell.cf27
1 files changed, 0 insertions, 27 deletions
diff --git a/src-3.0/GF/Command/GFShell.cf b/src-3.0/GF/Command/GFShell.cf
deleted file mode 100644
index 1f5a9fa6d..000000000
--- a/src-3.0/GF/Command/GFShell.cf
+++ /dev/null
@@ -1,27 +0,0 @@
---entrypoints CommandLine, Tree ;
-
-CLine. CommandLine ::= [Pipe] ;
-CEmpty. CommandLine ::= ;
-PComm. Pipe ::= [Command] ;
-Comm. Command ::= Ident [Option] Argument ;
-CNoarg. Command ::= Ident [Option] ;
-OOpt. Option ::= "-" Ident ;
-OFlag. Option ::= "-" Ident "=" Value ;
-VId. Value ::= Ident ;
-VInt. Value ::= Integer ;
-ATree. Argument ::= Tree ;
-
-TApp. Tree1 ::= Ident [Tree2] ;
-TAbs. Tree ::= "\\" [Ident] "->" Tree ;
-TId. Tree2 ::= Ident ;
-TInt. Tree2 ::= Integer ;
-TStr. Tree2 ::= String ;
-TFloat. Tree2 ::= Double ;
-
-coercions Tree 2 ;
-
-separator nonempty Pipe ";" ;
-separator nonempty Command "|" ;
-terminator Option "" ;
-terminator nonempty Tree2 "" ;
-terminator nonempty Ident "," ;