local function definition via let

This commit is contained in:
Michael Sippel 2024-05-11 18:07:58 +02:00
parent e23d8257d0
commit a6282c00eb
Signed by: senvas
GPG key ID: F96CF119C34B64A6
5 changed files with 103 additions and 100 deletions

View file

@ -57,6 +57,7 @@ where It: Iterator<Item = char>
match sym.as_str() {
"!" => {
tokens.next();
// todo accept address-expression instead of symbol
let name = parse_symbol(tokens)?;
let val_expr = parse_expr(tokens)?;
let _ = parse_expect(tokens, LTIRToken::StatementSep)?;