Releases: pmderodat/ada-toml
Releases · pmderodat/ada-toml
v0.5
v0.4
This release includes a couble of bug fixes:
- Spurious errors while parsing of non-ASCII TOML inputs with compilation flags that affect the behavior of
Ada.Text_IO
(like-gnatWx
). - A parser crash for TOML documents made invalid by adding an alphanumerical after the last newline.
v0.3
This new release updates the TOML parser for the 1.0.0 version of the format specification, fixes various bugs and brings a minor API addition:
- The updates for TOML 1.0.0 remove the array homogeneity restriction (a single array can now contain both integers, strings, etc.), which mandates a breaking API change (removal of the
Item_Kind_Set
,Item_Kind
andItem_Kind_Matches
primitives, and of the correpondingCreate_Array
constructor, as well as relevant pre/post condition updates). They also add several syntactic restrictions (control characters except horizontal tabs and newlines are now completely forbidden, even in comments, floating points must have at least one digit for the integer part, …). - The other parser updates fix what were bugs even for TOML 0.5.0: reject explicit signs for non-decimal integers, reject multiline string keys, handle lowercase in dates (
t
for the date/time separator andz
for the UTC timezone), reject\
in multiline strings when it does not end the line holding it, fix the handling of horizontal tabs in strings and finally fix the handling of multiline strings with 4 or 5 closing delimiters. - Addition in
TOML.Generic_Dump
of the missing handling for inline tables and fix the hexadecimal quoting of escape chars (they were quoted as\u007?
instead of\u007f
). - A new
TOML.Merge
function overload allows one to handle conflicting keys when merging two tables. It’s a generalization of the existingMerge
function.
0.2 Release
This minor release mostly brings bug fixes in the TOML parser:
- Fix the parsing of floats when the exponent sign is implicit (it should be positive, it used to be negative)
- Fix the parsing of too big or too small float values (the
Any_Float
should have theInfinity
orNaN
kind, it used to have theRegular
kind) - Fix the decoding of millisecond in times (
.1
should mean 100 milliseconds, it used to yield only 1) - Fix the parsing of local datetimes (it used to return local dates)
- Fix the parsing of integers in various contexts (it used to yield a parsing error when followed by some tokens such as closing square/curly brackets)
In addition, the external variable that controls the build mode in the ada_toml.gpr
project file has been renamed so that it’s unlikely to clash with other similar variables, which could happen easily with the Alire package manager.
0.1 Release
This is the first official release of ada-toml.