I published Fluent Syntax 0.9 today, together with the updated implementations in JavaScript and Python.
Syntax 0.9 doesn’t introduce any new features to the syntax. The version bump is due to the removal of deprecated features and to changes to the structure of the AST. It can be thought of a release candidate for Syntax 1.0. If all goes well, I’m planning to release 1.0 mid-April.
Below is a summary of the most significant changes in Syntax 0.9. Consult the changelog for more details.
-
VariantLists
andVariantExpressions
are no longer valid syntax. They had been deprecated since Syntax 0.8 and replaced by parameterized terms. -
The AST of reference expressions has been streamlined: even a complex reference expression like
{-term.attr(arg:"value")}
is now a singleTermReference
AST node, withattribute
andarguments
fields. -
StringLiteral.raw
has been renamed tovalue
, for symmetry withNumberLiteral
. It contains the raw unprocessed value of the literal.
The implementations have been updated, too, and the projectfluent.org website runs the latest versions.
-
fluent
0.12.0 (JavaScript) -
fluent-syntax
0.12.0 (JavaScript) -
fluent.syntax
0.14.0 (Python)