fluent-syntax 0.12.0

A low-level parser, AST, and serializer API for the syntax used by Project Fluent, a localization system designed to unleash the entire expressive power of natural language translations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use fluent_syntax::parser::parse_runtime;

fn iai_parse_ctx_runtime() {
    let files = &[
        include_str!("contexts/browser/appmenu.ftl"),
        include_str!("contexts/browser/browser.ftl"),
        include_str!("contexts/browser/menubar.ftl"),
        include_str!("contexts/preferences/preferences.ftl"),
    ];
    for source in files {
        parse_runtime(*source).expect("Parsing of the FTL failed.");
    }
}

iai::main!(iai_parse_ctx_runtime);