Skip to content
Snippets Groups Projects
  1. Jan 20, 2010
    • Erwan Jahier's avatar
      Fix a bug in the fresh var names generation : I was suffixing a var name by an incremented integer. · 67bd8962
      Erwan Jahier authored
      E.g., when creating a fresh var using the name of "L1", I was creating a var names "_L11", and then
      "_L12", and so on. But if a var is named "L11", "_L111" is created. If if "L1" is used to generate
      11 frash vart names, the name "_L111" clashes !!!
      
      The fix contist in adding an underscore before : "L1" produces "_L1_1", "_L1_2", ..., and "_L1_11".
      
      nb : the naming scheme is still wrong for other reasons... Next fix.
      67bd8962
  2. Jan 13, 2010
  3. Mar 03, 2009
  4. Feb 25, 2009
  5. Feb 04, 2009
  6. Jan 23, 2009
  7. Dec 08, 2008
  8. Nov 20, 2008
  9. Oct 24, 2008
  10. Oct 23, 2008
  11. Oct 22, 2008
  12. Aug 29, 2008
  13. Aug 26, 2008
  14. Aug 25, 2008
  15. Jul 23, 2008
  16. Jul 22, 2008
  17. Jun 26, 2008
    • Erwan Jahier's avatar
      A new implementation of EvalClock, that is more general. · 5dd64311
      Erwan Jahier authored
      Not yet implemented (assert false): iterators, struct
      
      Add a UnifyClock module, and rename Unify into UnifyType.
      
      nb : a lot of test are now broken, because
         - the clock checking is now plugged ;-)
         - iterators, struct are not yet implemented
      5dd64311
  18. Jun 09, 2008
    • Erwan Jahier's avatar
      When evaluating the type of a node call, check that the arguments and · 0096fda9
      Erwan Jahier authored
      the parameters  input types are  compatible with Unify.f.   Apply (if
      necessary) the resulting substitution to the output parameters.
      
      Also,  when checking array  concat, try  to unify  the types  of both
      arrays instead of just checking their equality.
      
      This of course triggers some errors in the non-reg tests.  One of
      this error is due to a bug in the parser, where the list of parameter
      was inversed twice. I've also fixed that in this change.
      0096fda9
    • Erwan Jahier's avatar
      Use type_eff_ext everywhere I was using type_eff (and rename · 00c67618
      Erwan Jahier authored
      type_eff_ext into type_eff btw). The  rationale is to be able to type
      alias           on           polymorphic          nodes           (cf
      test/should_fail/semantics/bad_call03.lus,  that now  have  a correct
      error msg).  It also makes  to code more compact (no more translation
      from one  to the  other), and more  general (type_eff_ext  being more
      general than type_eff).  User polymorphic nodes should be easy now.
      
      move all the code in parsey.mly into parserUtil.ml (ease the debug).
      00c67618
  19. Jun 06, 2008
  20. May 26, 2008
    • Erwan Jahier's avatar
      * mapred -> fillred · b3051f50
      Erwan Jahier authored
      b3051f50
    • Erwan Jahier's avatar
      I have complety rewritten the way predef operator typing is · b09c78c5
      Erwan Jahier authored
      performed. The resulting code is both more compact, and more general.
      
      It is more  general, since that predef operators  are now represented
      by  node_exp_eff, exactly as  user nodes.   Hence, all  the functions
      that were  operating on  user nodes via  node_exp_eff (such  as, node
      aliasing) works for free on predef op!
      
      In order to be able  to perform that generalisation, it was necessary
      to  extend sligthly  the data  structure used  to represent  the node
      profile in CompiledData.node_exp_eff with information indicating if a
      variable is polymorphic or overloaded.
      
      Not that, currently, polymorphic  or overloaded variables can only be
      introduced by predef  operators. But I think it would  be easy to add
      those notions for normal user nodes after this change.
      
      New non-reg files boolred now compiles. Those involving
      - boolred
      - alias on predef.op
      b09c78c5
  21. May 20, 2008
  22. Apr 02, 2008
  23. Mar 28, 2008
  24. Mar 14, 2008
  25. Feb 21, 2008
    • Erwan Jahier's avatar
      Write a more generic src/test/Makefile · 648fa2ee
      Erwan Jahier authored
      Add Some lustre files that are automatically tested thanks to the
      generic Makefile (from the Youssef compiler).
      
      Test files are organized as follows :
      
       - files in directories that are under the "should_fail" directory
        do triggers errors, but it is intented
      
      	should_fail/syntax
      	should_fail/type
      	should_fail/semantics
      
       - and files that should not trigger any error:
      
      	should_work/
      648fa2ee
Loading