CHANGES 5.42 KB
Newer Older
1 2 3 4 5
Since 0.2.2

- Warning for capture variables and projections that always return the empty
  sequence.
- Bug fixes when printing location in source code.
6 7
- Major rewrite of the support for XML Schema
   * removed print_schema directive
8 9 10
   * removed the "kind" selector (e.g. S # t as element)
   * include,import implemented
   * 
11 12 13 14 15 16 17 18 19 20 21 22 23 24
- removed the syntax  "external {...}", replaced with
    "unit.val with { ty1 ty2 ... }"
- removed the syntax H:val, replaced with H.val
- removed the syntax S#t, replaced with S.t
- overloaded the dot (record field acces, CDuce, OCaml, Schema units)
- identifiers (for types, values) are now qualified names
- A new tool cduce_mktop produce CDuce toplevels with embeded OCaml functions
- several bug fixes
- validate renamed to cduce_validate
- more efficient hash-consing of types
- better error message with script on stdin
- a dot in an identifier must be escaped with a backslash, e.g. x\.y
- improved #print_type (does not use the abbreviation for the printed type)
- float_of: String -> Float
25

26
0.2.2
27

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
- Language:
  * Runtime type-check: (e :? t) raises an exception when e doesn't 
    have type t; the exception is an explanation of why this is not the case.
    (The actual message may change in the future.)
  * Better return type for load_xml, defined as:
    AnyXml=<(Atom) (Record)>[ (AnyXml|Char)* ]
  * New style for comments: /* ... */
    Simple and double quotes within these comments are not handled
    specially. Moreover, these comments cannot be nested.
    The new style should be used for textual comments (which can include
    the simple quote); the old style is better for ignoring pieces of code.
  * Pattern guard /p in regexps to match the current tail. This can be used
    for setting "markers" without capturing anything, e.g.:
       [ (/(x:=1) ...) | (/(x:=2) ...) ]
    Back to the old semantics for default value patterns in regexps
    (they do capture an element).
  * New syntax  {...; l = p else p'; ... }. p' is applied
    to the whole matched record when p does not match (or when
    the field is missing). Equivalent to:
    { ...; l = p; ...} | ({...;...} & p')
  * Punning in record/attribute expressions and patterns.
    { x; y } is a shorthand for {x=x;y=y}.
  * New syntax for R**n in regular expressions, equivalent
    to R...R (n times), where n > 0.
  * Interval arithmetic for the * operator.
  * Warning for potential division by 0.
  * New "system", "exit", "getenv" built-in functions.

- Toplevel, interpreter, compiler:
  * New #silent, #verbose directives.
  * New --script option.
  * Removed the warning "no caml interface".

- Compilation:
  * Better compilation of sequence capture variables.
    Now, [ ... x::Any* ] is as efficient as [ ... ; x ]. Can also be written
    [ ... /x _* ]. The [ ... ; ... ] syntax is no longer necessary
    and might be deprecated.
    
- Bug fixes, including:
  * Bug fixes in configure/Makefile for Cygwin.
  * Bug fix for the compilation of complex patterns with records.
  * Fixed a little bit support for XML Schema, but still largely broken.
  * Fix --stdin.
72
  * Bug fix in print_xml (do not create a namespace decl for "xml:").
73

74
- Distribution:
75
  * apps-cduce-cvs GODI package is updatable.
76 77
  * The release tarball does not contain the CDuce website, only
    the HTML documentation (memento, tutorial, manual).
78

79
0.2.1
80 81

- string:// scheme for load_xml and others
82 83
- code updated to OCaml 3.08.1, PXP 1.1.95
- NOTE: support for namespaces in XML Schema may be broken
84

85
0.2.0
86

87 88
- OCaml/CDuce interface.

89
- Language:
90
  * Support for URLs in load_xml, load_html, load_file, and schemas:
91
    e.g. you can write `` load_html "http://www.cduce.org/" ''
92
    (need either the ocurl package or the netclient package).
93
  * More advanced (and documented) support for XML Schemas. 
94
  * Preliminary integration of CQL query language that is:
95 96
    select e from p1 in e1, ... ,pn in en where e'.
  * Allow structured constants in default value patterns (p := c).
97
  * Default value patterns in regexps don't consume an element.
98 99 100
  * Logical operators &&, ||, and not.
  * New syntax for currified functions
    fun (p1 : t1)...(pn : tn) : t = ...
101 102

- Incompatible changes:
103 104
  * argv is now an operator of type [] -> [ String* ].
  * The --dump, --load, --save options are deprecated.
105
  * Changes to the command line. "--pxp" is replaced with "--no expat".
106 107 108 109 110 111 112
 
- Implementation:
  * Code upgraded to Ocaml 3.07.
  * Major cleaning in progress.
  * Added internal support for abstract data types.
  * Using ulex instead of wlex.
  * Sources can now be in utf8.
113 114
  * Separate compilation.
  * Lazy implementation of @.
115 116 117

- Other:
  * Added configure script.
118
  * Various Makefile improvements.
119 120 121 122

- Bug fixes:
  * Bug fixes in the parser. Tuples are now ok in regexps.

123

124
0.1.1
125
  * Various bug fixes  (expat might now work)
126 127 128 129
  * Sequencing operator   e1;e2  (equivalent to: let [] = e1 in e2)
  * Encoded references
  

130
0.1.0
131
  * Support for XML Namespaces
132
  * Better support for expat; clean Makefile
133
  * Get rid of ;; and let fun in examples
134
  * Optional ; for record in attribute position (values and types/patterns)
135
  * Split --dump into --load and --save
136 137 138 139 140
  * Better handling of strings (specific node in AST)
  * Map, transform: tail-recursive implementation
  * Preliminary support for XML Schema
  * Various bug fixes

141

142 143 144 145 146 147
0.0.91
  * Second alpha release
  * Bug fixes and syntax changes (e.g. making "fun" optional in "let fun")
  * Experimenting with expat support (see expat/README)
 

148 149
0.0.9  
  * First public release (alpha release)