mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
parent
31e84bf5b3
commit
f1b24d436a
20 changed files with 1081 additions and 1103 deletions
|
|
@ -149,10 +149,8 @@ impl ToTokens for CommandDef {
|
|||
}
|
||||
}
|
||||
/// Generated by [tengri_proc::command].
|
||||
impl<'state> ::tengri::dsl::Take<'state, #state> for #command_enum {
|
||||
fn take <'source: 'state> (
|
||||
state: &#state, mut words: ::tengri::dsl::TokenIter<'source>
|
||||
) -> Perhaps<Self> {
|
||||
impl ::tengri::dsl::Take<#state> for #command_enum {
|
||||
fn take (state: &#state, mut words: ::tengri::dsl::Cst) -> Perhaps<Self> {
|
||||
let mut words = words.clone();
|
||||
let token = words.next();
|
||||
todo!()//Ok(match token { #(#matchers)* _ => None })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue