added arithmetic substitution

This commit is contained in:
2025-05-13 13:08:53 -04:00
parent 25e85edab0
commit df17ecdfb8
5 changed files with 366 additions and 48 deletions

View File

@@ -64,6 +64,7 @@ impl ParsedSrc {
pub fn parse_src(&mut self) -> Result<(),Vec<ShErr>> {
let mut tokens = vec![];
for lex_result in LexStream::new(self.src.clone(), LexFlags::empty()) {
flog!(DEBUG, lex_result);
match lex_result {
Ok(token) => tokens.push(token),
Err(error) => return Err(vec![error])