This version of the module is deprecated: This package is deprecated. moonbit-community/proton_config should be preferred.

    proton_config

    Typed config parser for Proton moon.proton and moon.ext files.

    Download zip
    Author
    Version
    0.1.4
    License
    MIT
    Last updated
    4 months ago
    Downloads
    2K

    justjavac/proton_config does not have a README file

    ConfigLoc

    using @moonbitlang/lexer/basic { type Location as ConfigLoc }

    ConfigField

    pub(all) struct ConfigField {
    key : String
    key_loc :
    Location

    value : Ast
    } derive(Eq,
    Debug
    )

    parse_moon_ext

    fn parse_moon_ext(name? : String, source : String) -> (Ast, Array[
    Report
    ])

    parse_moon_mod

    fn parse_moon_mod(name? : String, source : String) -> (Ast, Array[
    Report
    ])

    parse_moon_proton

    fn parse_moon_proton(name? : String, source : String) -> (Ast, Array[
    Report
    ])