1. 17 Feb, 2020 1 commit
  2. 10 Feb, 2019 1 commit
  3. 13 Jun, 2018 1 commit
    • Maxime Joubert's avatar
      style: expand tabs to spaces to fix warnings · e618839e
      Maxime Joubert authored
      Use spaces rather than tabulations to fix ghc warnings.
      Remove trailing whitspaces.
      
      * src/Annotation.hs,
      * src/Code.hs,
      * src/Config.hs.in,
      * src/Cpu.hs,
      * src/Eval.hs,
      * src/High.hs,
      * src/Ir.hs,
      * src/Level.hs,
      * src/Location.hs,
      * src/Main.hs,
      * src/Memory.hs,
      * src/Opt.hs,
      * src/Parse.hs,
      * src/Plain.hs,
      * src/Position.hs,
      * src/Preload.hs,
      * src/Profile.hs,
      * src/Report.hs,
      * src/Result.hs,
      * src/Runtime.hs,
      * src/RuntimeChar.hs,
      * src/RuntimePrint.hs,
      * src/RuntimeString.hs,
      * src/RuntimeSystem.hs,
      * src/Scan.hs,
      * src/Token.hs,
      * src/Trace.hs,
      * src/VMMonad.hs,
      * src/local.am: here.
      e618839e
  4. 13 Apr, 2016 1 commit
  5. 28 Jan, 2016 1 commit
  6. 20 Apr, 2006 1 commit
    • Akim Demaille's avatar
      2006-04-20 Akim Demaille <akim@lrde.epita.fr> · 384e0f49
      Akim Demaille authored
      	Let --trace, --display, and --profile take an optional fd.
      	This patch is ugly, with a lot of code duplication...
      	I'll improve it late, but be my guest if you feel like.
      	* src/Opt.hs (Flag): Replace Trace and Display with TraceFd and
      	DisplayFd.
      	Adjust all the code.
      	(profilefdm displayfd, tracefd): New.
      	(extract): Adjust.
      	* src/VMMonad.hs (setDisplayHandle, setTraceHandle)
      	(getDisplayHandle, getTraceHandle): New.
      	* src/Main.hs: Import and use them.
      	* src/Trace.hs (hwarn): New.
      	(averbose): Use it.
      	* doc/havm.texi (Invoking havm): Adjust.
      384e0f49
  7. 27 Feb, 2006 1 commit
    • Roland Levillain's avatar
      Add the choice of the file descriptor for the profiling information. · 1384172e
      Roland Levillain authored
      - src/Opt.hs (Profile): Rename constructor as...
      (ProfileFd): ...this, and have it take a String value.
      Adjust Eq instance.
      (extract): Adjust.
      (OptVal): New type.
      (version_message): Update years.
      (options): Let the `profile' option take a mandatory argument.
      (opt, process, extract): Use `Map String OptVal' instead of
      `Map String Bool'.
      - src/VMMonad.hs (State): Add a new `profileHandle' field to the
      record.
      (run): Initialize this new field.
      (optset, opttell): Use `OptVal' instead of `Bool'.
      (setProfileHandle, getProfileHandle): New functions.
      - src/Trace.hs (trace, verbose, averbose): Adjust.
      - src/Profile.hs (profileExp, profileStm): Use getProfileHandle
      instead of querying the `profile' option of the VM.
      - src/Main.hs (profileM): Likewise.
      (evalM): Likewise.
      Use setProfileHandle instead of setting the `profile' option of
      the VM.
      Adjust.
      (unparseM, checkLowM): Adjust.
      1384172e
  8. 23 May, 2005 2 commits
    • Yann Rgis-Gianas's avatar
      2005-05-23 Yann Regis-Gianas <yann.regisgianas@gmail.com> · c2c96d48
      Yann Rgis-Gianas authored
      	Finish port to GHC 6.4.
      
      	* src/Monad.hs: Rename to ...
      	* src/VMMonad.hs: New.
      	* src/Makefile.am: Update.
      	* src/Level.hs, src/Code.hs, src/Report.hs, src/Preload.hs, 
      	  src/Eval.hs, src/RuntimeCommon.hs, src/RuntimePrint.hs,
      	  src/Low.hs, src/RuntimeInput.hs, src/Plain.hs, src/Memory.hs,
      	  src/RuntimeString.hs, src/High.hs, src/RuntimeChar.hs, 
      	  src/Runtime.hs, src/Main.hs, src/Cpu.hs, src/RuntimeSystem.hs,
      	  src/Trace.hs, src/RuntimeInt.hs, src/Profile.hs
      	
      	     - Adjust dependencies ;
      	     - Adjust API's calls.
      
      
      c2c96d48
    • Akim Demaille's avatar
      2005-05-23 Akim Demaille <akim@epita.fr> · 44a9c559
      Akim Demaille authored
      	First set of changes to compile with GHC 6.4.
      	Help is needed!
      
      	* Code.hs, Cpu.hs, Eval.hs, Level.hs, Main.hs, Monad.hs, Opt.hs,
      	Report.hs, Runtime.hs, RuntimeCommon.hs, RuntimeSystem.hs:
      	s/FiniteMap/Data.Map/.
      44a9c559
  9. 16 Oct, 2003 1 commit
    • Akim Demaille's avatar
      2003-10-16 Akim Demaille <akim@epita.fr> · 6ad24a02
      Akim Demaille authored
      	Change labels from "l`...'" to "...".
      
      	* src/Scan.hs (isIdentNum): Use isIdent.
      	(isIdent): Accept "_" for sake of "print_int".
      	(scan): No longer detect "l`...'".
      	(scanLabel): Remove.
      	* doc/havm.texi: Adjust.
      
      	"size" is a Tiger builtin, but also an Havm keyword for an
      	obsolete feature.  Get rid of the latter.
      
      	* src/Ir.hs, src/Annotation.hs, src/Eval.hs, src/High.hs,
      	* src/Low.hs, src/Parse.y, src/Preload.hs, src/Print.hs: Label has
      	no "size" attribute.
      	* src/Code.hs, src/Monad.hs (cframesize): Remove.
      	Adjust callers.
      	* src/Scan.hs (TokSize): No longer used.
      6ad24a02
  10. 05 Mar, 2003 1 commit
    • Akim Demaille's avatar
      2003-03-05 Akim Demaille <akim@epita.fr> · b75277ec
      Akim Demaille authored
      	* src/Code.hs, src/Cpu.hs, src/Eval.hs, src/Ir.hs, src/Main.hs,
      	* src/Memory.hs, src/Monad.hs, src/Parse.y, src/Preload.hs,
      	* src/Print.hs, src/Result.hs, src/Scan.hs, src/StdBinop.hs,
      	* src/StdRelop.hs, src/Token.hs: Use Unix end of lines, not a` la
      	DOS.
      b75277ec
  11. 10 Jun, 2002 1 commit
  12. 24 May, 2002 2 commits
  13. 21 May, 2002 3 commits
    • Robert Anisko's avatar
      2002-05-21 Robert Anisko <robert@lrde.epita.fr> · cebc091a
      Robert Anisko authored
      	* src/Main.hs (evalM): Adapt.
      	* src/Eval.hs (evalTrace): Adapt.
      
      	* src/Monad.hs (traceon, traceoff, traceset, tracetell): Remove, replace by...
      	(optset, optttell): ...these.
      cebc091a
    • Robert Anisko's avatar
      2002-05-21 Robert Anisko <robert@lrde.epita.fr> · 2e3ba3aa
      Robert Anisko authored
      	* src/Eval.hs: Change typing to accept annotations on trees.
      	* src/Preload.hs: Likewise.
      	* src/Parse.y: Likewise.
      	* src/Main.hs: Likewise.
      
      	* src/Print.hs: Use Stm Ann instead of Stm.  Display annotations
      	when possible.
      
      	* src/Monad.hs: Use Stm Ann instead of Stm.
      	* src/Code.hs: Use Stm Ann instead of Stm.
      
      	* src/Annotation.hs: New file, defines a default annotation type.
      	* src/Ir.hs: Parametrize the abstract syntax tree of intermediate
      	representation to allow arbitray annotations.
      2e3ba3aa
    • Robert Anisko's avatar
      2002-05-21 Robert Anisko <robert@lrde.epita.fr> · 5a54267c
      Robert Anisko authored
      	* src/Preload.hs: Use an integer to store the current level, instead
      	of a boolean telling if the current level is the outer level.
      
      	* src/Monad.hs (lstore, lfetch): New functions, used to associate a
      	depth to labels.
      
      	* src/Memory.hs: Update.
      	* src/Main.hs: Update.
      
      	* src/Level.hs: New file.
      5a54267c
  14. 17 May, 2002 2 commits
    • Robert Anisko's avatar
      2002-05-17 Robert Anisko <robert@lrde.epita.fr> · cff592f6
      Robert Anisko authored
      	* src/Main.hs: Process options for execution tracing.
      	* src/Opt.hs: Accept `-t' and `--trace'.
      
      	* src/Eval.hs (evalTrace): New function, used to display informations
      	when tracing is enabled.
      	(evalExp, evalStm): Add execution tracing.
      
      	* src/Monad.hs (traceon, traceoff, traceset, tracetell): New functions,
      	used to control execution tracing.
      cff592f6
    • Robert Anisko's avatar
      2002-05-17 Robert Anisko <robert@lrde.epita.fr> · aea6be21
      Robert Anisko authored
      	* src/Makefile: Update.
      
      	* src/Preload.hs: Use lift instead of dump and exec.
      	* src/Eval.hs: Use lift instead of dump and exec.
      
      	* src/Monad.hs (dump, exec): Merge into...
      	(lift): ...this.
      aea6be21
  15. 07 May, 2002 2 commits