#[derive(Clone, Hash, PartialEq, Eq, Debug)]
enum OutToken {
Sym(IStr),
Plus, // For concatenation without space insertion.
Upper, // For capitalizing the next character.
}
teach libaffix::gen::join_symbols how to capitalize the next character when it sees an OutToken::Upper variant.
create an
OutToken
which will capitalize the next character it sees.Proposed Syntax
this example would generate the sentence:
Alternate Syntax
ranked in order of my personal preference
Implementation
teach parser how to parse a
!
character to some newToken
variantadd an enum variant to
libaffix::gen::OutToken
:teach
libaffix::gen::join_symbols
how to capitalize the next character when it sees anOutToken::Upper
variant.