wip: ast/cst
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-25 22:48:29 +03:00
parent 31e84bf5b3
commit f1b24d436a
20 changed files with 1081 additions and 1103 deletions

View file

@ -85,10 +85,8 @@ impl ToTokens for ExposeImpl {
});
write_quote_to(out, quote! {
/// Generated by [tengri_proc::expose].
impl<'n> ::tengri::dsl::Take<'n, #state> for #t {
fn take <'source: 'n> (
state: &#state, mut words: ::tengri::dsl::TokenIter<'source>
) -> Perhaps<Self> {
impl ::tengri::dsl::Take<#state> for #t {
fn take (state: &#state, mut words: ::tengri::dsl::Cst) -> Perhaps<Self> {
Ok(Some(match words.next().map(|x|x.value) {
#predefined
#(#values)*