1. 25 Aug, 2014 3 commits
  2. 21 Aug, 2014 7 commits
  3. 20 Aug, 2014 2 commits
  4. 19 Aug, 2014 6 commits
  5. 23 Jul, 2014 3 commits
  6. 15 Jul, 2014 7 commits
  7. 14 Jul, 2014 6 commits
  8. 13 Jul, 2014 2 commits
    • Kim Nguyễn's avatar
      - Introduce an abstract type for precedences used during pretty-printing. · 148cae0c
      Kim Nguyễn authored
      - Change the precedence of the XML constructor to be stronger than the set-theoretic operations (compatibility with previous CDuce)
      - Pretty-printing of regular expressions. When the input type contains a sequence type, print the sequence as a regular expression. Do not print empty sequences unless the rest of the atom components is finite:
           `a |`b | `nil
      will be printed as
           [] | `a | `b
      but
           Atom \ 'a
      will be printed as
           Atom \'a
      and not
           Atom \ ('a | `nil) | []
      - Remove Arrow from positive arrow part (unless it is the only component)
      - Fix a bug where records would be printed instead of attributes
      148cae0c
    • Kim Nguyễn's avatar
      More work on pretty-printing: · 83ef66d7
      Kim Nguyễn authored
      - Simplify the pretty-printing descriptor type
      - Fix a bug where some unions were shown as intersections
      - Correctly display parentheses where needed (issue: #17)
      - Prevent sharing for "small" subtrees (AST less than 6 nodes), so:
        (Int -> Int) -> Int -> Int
        is not shown as:
        X1 -> X1 where X1 = Int -> Int
        (but bigger types are).
      83ef66d7
  9. 12 Jul, 2014 2 commits
  10. 11 Jul, 2014 2 commits
    • Kim Nguyễn's avatar
      Partial fix for issue #20. In the Value.t type, the Concat _ value and the... · d774a55b
      Kim Nguyễn authored
      Partial fix for issue #20. In the Value.t type, the Concat _ value and the Pair value must have the same underlying representation (since their tag is mutated).
      This actually also corrects a bug: Concat _ nodes acts as constructor (like pairs, xml, records, …) and should also be decorated with a sigma. Adding a sigma component to Concat make the segfault disapear. However, for the moment substitutions in Concat are never used.
      d774a55b
    • Kim Nguyễn's avatar
      Fix issue #20. When the Top of a kind is present without variables, we · 8a032b4e
      Kim Nguyễn authored
      distribute it (redudantly) under all variables to simplify their pretty-printing.
      
      Hence, instead of having e.g. :
      
      ('a \ (Int)) | Char | Int | Atom)
      
      we have
      ('a | Char | Int | Atom)
      8a032b4e