aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-12-17 23:05:46 +0100
committerDrahflow <drahflow@gmx.de>2015-12-17 23:05:46 +0100
commitf27779be825c2cf7ff027acb9a4b7819add3bb30 (patch)
tree684a9736dcd5424f35ccc82ecee9f3e5ba88c069
parentcce5f5561a1b0ad030274ad27f895a639cc8773d (diff)
Don't pollute scopes around include
-rw-r--r--compiler/standardClient.ey18
1 files changed, 9 insertions, 9 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey
index fecbf97..ca05e41 100644
--- a/compiler/standardClient.ey
+++ b/compiler/standardClient.ey
@@ -1219,17 +1219,17 @@
# no long-term stack use here as the executed program uses it as well
{ scope
- 0 "0" * ==:zero
- { 0 ==result
- { zero sub result 10 mul add =result } each
- result
- } /base10decode deffd
+ { ==currentScope ==input
+ 0 "0" * ==:zero
+ { 0 ==result
+ { zero sub result 10 mul add =result } each
+ result
+ } /base10decode deffd
- [ 0 11 range {
- sys .asm .intToFloat
- } each ] =*:FLOAT
+ [ 0 11 range {
+ sys .asm .intToFloat
+ } each ] =*:FLOAT
- { ==currentScope ==input
{ .value currentScope sys .executeIdentifierScoped =currentScope } /TOKID defvst
{ .value base10decode } /TOKINT defvd
{ .value "^(\\d+)(\\.(\\d*))?([eE](-)?(\\d+))?$" regex