Changeset 9210 for src/Pugs/Run
- Timestamp:
- 02/28/06 17:39:48 (3 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Run/Args.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Run/Args.hs
r8837 r9210 31 31 by compareArgs and is currently: 32 32 33 > (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (- l -0 -e other)33 > (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (-0 -e other) 34 34 35 35 Args -M, -n and -p are converted to -e scripts by desugarDashE. … … 111 111 Enforce a canonical order of command line switches. Currently this is: 112 112 113 > (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (- l -0 -e other)113 > (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (-0 -e other) 114 114 115 115 This makes pattern matching more convenient … … 147 147 gatherArgs :: [String] -> [Arg] 148 148 gatherArgs [] = [] 149 -- XXX implement BEGIN block later150 gatherArgs ("-l":rest) = gatherArgs("-e":"# BEGIN { ... } # to be done":rest)151 149 gatherArgs ("-e":frag:rest) = [Opt "-e" frag] ++ gatherArgs(rest) 152 150 gatherArgs ("--external":mod:rest) = [Opt "--external" mod] ++ gatherArgs(rest)
