mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-07 04:06:48 +01:00
dsl: InputLayerCond; collect macros
This commit is contained in:
parent
0d4ba4a54e
commit
3df1938626
6 changed files with 121 additions and 110 deletions
|
|
@ -34,6 +34,12 @@ impl<'a> Iterator for TokenIter<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<&'a str> for TokenIter<'a> {
|
||||
fn from (source: &'a str) -> Self{
|
||||
Self(SourceIter(source))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<SourceIter<'a>> for TokenIter<'a> {
|
||||
fn from (source: SourceIter<'a>) -> Self{
|
||||
Self(source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue