mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
This commit is contained in:
parent
21832453d9
commit
17506726cb
36 changed files with 280 additions and 271 deletions
|
|
@ -85,8 +85,8 @@ impl ToTokens for ExposeImpl {
|
|||
});
|
||||
write_quote_to(out, quote! {
|
||||
/// Generated by [tengri_proc::expose].
|
||||
impl ::tengri::dsl::Take<#state> for #t {
|
||||
fn take (state: &#state, mut words: ::tengri::dsl::Cst) -> Perhaps<Self> {
|
||||
impl ::tengri::dsl::Dsl<#state> for #t {
|
||||
fn try_provide (state: &#state, mut words: ::tengri::dsl::Ast) -> Perhaps<Self> {
|
||||
Ok(Some(match words.next().map(|x|x.value) {
|
||||
#predefined
|
||||
#(#values)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue