1. 12 Sep, 2014 1 commit
  2. 09 Sep, 2014 1 commit
    • Pietro Abate's avatar
      New syntax for parametric types · f1235de1
      Pietro Abate authored
      now we can write types as
      type t( 'a) = <a>'a
      
      and patterns can contain type instantiations
      let f = fun (t('a) -> [ t('a)* ]) x -> [ x ];;
      let id = fun (t(Int) -> [ t(Int)* ]) x -> [ x ];;
      
      Note: parametric types must be written as "IDENT(" without space.
      f1235de1
  3. 08 Sep, 2014 1 commit
    • Pietro Abate's avatar
      Add parametric type to patterns · 0d3a9e60
      Pietro Abate authored
      - change syntax to avoid conflicts ( tried "((", "[<", "<[", "(" )
         type t {[ 'a,'b ]} = (Int,[ 'b* ]) ;;
         let app (f : 'a -> t {[Int,Int]} )(a : 'a) : t = f a;;
      0d3a9e60
  4. 25 Aug, 2014 2 commits
  5. 11 Jul, 2014 1 commit
  6. 10 Jul, 2014 1 commit
  7. 09 Jul, 2014 2 commits
  8. 08 Jul, 2014 1 commit
  9. 27 Jun, 2014 1 commit
    • Julien Lopez's avatar
      We don't need parentheses for type variables in regexp anymore, the syntax is · 9b94eb11
      Julien Lopez authored
      now as such:
      	- ['a] is the regexp matching the type variable "a";
      	- ['a'] is the regexp matching the string "a";
      	- ['a' 'a] is the regexp matching the string "a" followed by the type
      	variable "a";
      	- ['a''a] is a syntax error (a string in single quotes in a regexp MUST
      	be followed by a character that cannot be the beginning of a name for a
      	type variable, a blank character will do).
      
      Bug: At this point, when using CDuce at toplevel, one will have to press enter
      twice when typing a regexp with type variables.
      9b94eb11
  10. 26 Jun, 2014 1 commit
  11. 24 Jun, 2014 1 commit
  12. 20 Jun, 2014 1 commit
  13. 19 Jun, 2014 5 commits
  14. 03 Dec, 2013 1 commit
  15. 08 Mar, 2011 1 commit
  16. 03 Mar, 2011 1 commit
  17. 05 Oct, 2007 14 commits
  18. 10 Jul, 2007 4 commits