Open waywardmonkeys opened 8 years ago
This should be implemented according to http://userguide.icu-project.org/formatparse/messages
The key things are:
offset
other
one
few
many
=0
=1
There's a PEG parser for this in https://github.com/messageformat/parser/blob/master/parser.pegjs if guidance is needed.
The existing code for this is in src/icu/parse.rs and would be using the existing AST nodes from src/icu/ast/plural_format.rs.
src/icu/parse.rs
src/icu/ast/plural_format.rs
@micrypt ?
This should be implemented according to http://userguide.icu-project.org/formatparse/messages
The key things are:
offset
.other
case.one
,few
,many
cases or any number of literals like=0
,=1
, etc.There's a PEG parser for this in https://github.com/messageformat/parser/blob/master/parser.pegjs if guidance is needed.
The existing code for this is in
src/icu/parse.rs
and would be using the existing AST nodes fromsrc/icu/ast/plural_format.rs
.