1. 12 Sep, 2014 1 commit
    • Pietro Abate's avatar
      minor modification in let binding syntax · c3ff3266
      Pietro Abate authored
      - patterns used after a let binding must be enclosed in parenthesis
        consider : type t( 'a ) = [ 'a* ] ;;
        this function declaration works
          let (t(Int) & x) = [ 1 ] ;;
        while without parenthesis will raise a failure.
      c3ff3266
  2. 10 Sep, 2014 5 commits
  3. 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
  4. 08 Sep, 2014 15 commits
  5. 03 Sep, 2014 1 commit
  6. 31 Aug, 2014 3 commits
  7. 28 Aug, 2014 5 commits
  8. 26 Aug, 2014 3 commits
  9. 25 Aug, 2014 6 commits