-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate Expressions from Placeables
These changes are inspired by the current code of the fluent.rs parser and the discussion in projectfluent/fluent-rs#12. The AST produced by the parser closely mimics the EBNF grammar: - patterns are vectors of text elements or placeables, - SelectExpression is only allowed in placeables, - the number type is used in tuple structs. Renames in ASDL: - expr → plcbl - sel → expr - KeyValueArgument → NamedArgument Renames in EBNF: - variable → external - expression merged into placeable - selector-expression → expression Other changes: - added Pattern and Placeable constructors to the expr type - NamedArgument is no longer an Expression - CallExpression's callee is now a new type: fun
- Loading branch information
Showing
2 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters