simonmar 2003/09/04 04:08:49 PDT
Modified files:
ghc/compiler/ghci InteractiveUI.hs
ghc/compiler/main DriverFlags.hs DriverState.hs Main.hs
ghc/compiler/parser Lex.lhs
Log:
Add a new command-line flag -e EXPR, which runs ghc in interactive
mode and evaluates EXPR only before exiting.
Also, the lexer now ignores lines beginning with "#!". This is so
that we can use ghc as a scripting language with Unix-style scripts
beginning with
#! /usr/local/bin/ghc -e main
(well, it's not quite that simple, but I'll leave the details for the
more enterprising hackers).
Revision Changes Path
1.159 +14 -8 fptools/ghc/compiler/ghci/InteractiveUI.hs
1.123 +2 -1 fptools/ghc/compiler/main/DriverFlags.hs
1.96 +2 -1 fptools/ghc/compiler/main/DriverState.hs
1.132 +18 -8 fptools/ghc/compiler/main/Main.hs
1.94 +7 -0 fptools/ghc/compiler/parser/Lex.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc