Open futursolo opened 3 years ago
In addition, with the new parser only rely on std
and arcstr
(which maybe removed if a customised ArcStr
is smaller) when parsing string literals, I think it makes sense to make parser
available to everyone for debug_assertions
in Style
and GlobalStyle
in debug mode.
This issue aims to implement a unified parser that replaces
nom
andsyn::parse
:proc_macro2::TokenStream
andString
as inputproc_macro2::Span
and string cursorcompile_error!
forproc_macro2::TokenStream
Minimum Requirement:
Good to Have:
Flow: Input(
String
orproc_macro2::TokenStream
) -> Tokenise(stylist::parser::TokenStream
) -> Parse(stylist::parser::ast
) -> Output(stylist::ast
)There's no ETA for this issue and it will land when the work completes.