mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat: add ASTDiff
and impl lazy compilation
This commit is contained in:
parent
cac2c51cd4
commit
33e1b776cb
9 changed files with 140 additions and 7 deletions
|
@ -351,6 +351,12 @@ macro_rules! impl_stream {
|
|||
}
|
||||
}
|
||||
|
||||
impl std::ops::IndexMut<usize> for $Strc {
|
||||
fn index_mut(&mut self, idx: usize) -> &mut Self::Output {
|
||||
erg_common::traits::Stream::get_mut(self, idx).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<$Strc> for Vec<$Inner> {
|
||||
fn from(item: $Strc) -> Vec<$Inner> {
|
||||
item.payload()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue