Skip to content

feat: Make fluent_syntax::parser::core::Parser pub#394

Open
danielrainer wants to merge 1 commit intoprojectfluent:mainfrom
danielrainer:make_parser_pub
Open

feat: Make fluent_syntax::parser::core::Parser pub#394
danielrainer wants to merge 1 commit intoprojectfluent:mainfrom
danielrainer:make_parser_pub

Conversation

@danielrainer
Copy link

This allows creating a simple FTL formatter by parsing and then immediately serializing the parsing result again.

@danielrainer danielrainer changed the title feat: make fluent_syntax::parser::core::Parser pub feat: Make fluent_syntax::parser::core::Parser pub Nov 10, 2025
This allows creating a simple FTL formatter by parsing and then
immediately serializing the parsing result again.
@danielrainer
Copy link
Author

I just played around with this some more and it turns out that with Parser accessible, quite a lot becomes possible. For example, I just built a POC tool for renaming IDs and variables on top of fluent-syntax.

danielrainer pushed a commit to danielrainer/fluent-ftl-tools that referenced this pull request Feb 28, 2026
This fork differs from mainline `fluent-rs` by a single line, which
makes `Parser` from the `fluent-syntax` crate public. We need this
because our code depends on the parser for much of its functionality.

There is an open PR for this, but so far it hasn't been addressed:
projectfluent/fluent-rs#394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant