add bool var toggle function

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-03-02 12:15:42 -08:00
parent 28e158f110
commit 5ce0a8e8b2
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
6 changed files with 160 additions and 8 deletions

View file

@ -231,7 +231,7 @@ fn _store_callback(ast: &Seg, syms: &mut SymTable, env_cfg: bool) -> Result<Ctr,
arg_syms: arg_list.clone(),
}),
name: identifier.clone(),
args: Args::Strict(arg_list.into_iter().map(Type::from).collect()),
args: Args::Lazy(arg_list.len() as u128),
conditional_branches: false,
},
);