Crate vojaq_parser

Source
Expand description

§vojaq_parser

vojaq_parser is a Rust crate which can parse Vojaq files.

ありがとう {arigatou} thank you
馬鹿 {baka} idiot | stupid
洗い熊 | アライグマ {araiguma} raccoon {animal}
サントノーレ {santonôre} Saint-Honoré {pastry | cake} French

§Disclaimer

This crate is very buggy and far from being finished. You should not use this crate at the moment.

§Vojaq syntax

A variant is a character string which does not contain unescaped {, }, | or a linefeed.

A field is an array of variants separated by a |.

A line is an array of fields in such a way that one in two fields is enclosed between { and }.

A set is an array of lines separated by a linefeed (LF).

Structs§

VojaqField
A Vojaq field is an “array” of variants.
VojaqLine
A Vojaq line is an “array” of Vojaq fields.
VojaqSet
A Vojaq set is an “array” of Vojaq lines.

Enums§

ParsingError

Functions§

parse_vojaq
Parse a Vojaq text into a Vojaq set.
read_file
Extract the content of a Vojaq file into a VojaqSet.

Type Aliases§

ParsingResult