mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Parser only change state on success
This commit is contained in:
parent
0e755ea841
commit
c847fefd39
3 changed files with 59 additions and 16 deletions
|
|
@ -8,6 +8,7 @@ common = {
|
|||
local global_vars = state.interpreter.global_state.variables
|
||||
for var, value in pairs(state.variables) do
|
||||
global_vars[var] = value
|
||||
state.variables[var] = nil
|
||||
end
|
||||
end,
|
||||
-- returns a variable's value, evaluating a pending expression if neccessary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue