mirror of
https://github.com/Noratrieb/mono-fmt.git
synced 2026-01-17 08:45:05 +01:00
state machine!
This commit is contained in:
parent
6273a35732
commit
34155bcd48
2 changed files with 63 additions and 4 deletions
|
|
@ -234,6 +234,8 @@ impl ToTokens for FmtPart {
|
|||
pub fn format_args(tokens: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(tokens as Input);
|
||||
|
||||
parser::FmtSpecParser::new(&mut input.format_str.chars().peekable()).parse();
|
||||
|
||||
let formatter = Formatter {
|
||||
string: input.format_str.chars().peekable(),
|
||||
exprs: input.exprs.into_iter(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue