mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
wip: dsl, output, input, proc, tui: sorting out give and take
Some checks are pending
/ build (push) Waiting to run
Some checks are pending
/ build (push) Waiting to run
This commit is contained in:
parent
5a2177cc77
commit
3e1084555b
10 changed files with 273 additions and 301 deletions
|
|
@ -149,10 +149,9 @@ impl ToTokens for CommandDef {
|
|||
}
|
||||
}
|
||||
/// Generated by [tengri_proc::command].
|
||||
impl<'n> ::tengri::dsl::Take<'n, #state> for #command_enum {
|
||||
fn take <'source> (
|
||||
state: &#state,
|
||||
words: &mut ::tengri::dsl::TokenIter<'source>
|
||||
impl<'state> ::tengri::dsl::Take<'state, #state> for #command_enum {
|
||||
fn take <'source: 'state> (
|
||||
state: &#state, mut words: ::tengri::dsl::TokenIter<'source>
|
||||
) -> Perhaps<Self> {
|
||||
let mut words = words.clone();
|
||||
let token = words.next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue