summaryrefslogtreecommitdiff
path: root/src-3.0/GF/Command/Abstract.hs
blob: 127cbf6e097ea0909a28532ec876e3349594ae7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module GF.Command.Abstract where

import PGF.Data

type Ident = String

type CommandLine = [Pipe]

type Pipe = [Command]

data Command
   = Command Ident [Option] Argument
   deriving (Eq,Ord,Show)

data Option
  = OOpt Ident
  | OFlag Ident Value
  deriving (Eq,Ord,Show)

data Value
  = VId  Ident
  | VInt Integer
  deriving (Eq,Ord,Show)

data Argument
  = AExp Exp
  | ANoArg
  deriving (Eq,Ord,Show)