diff options
| author | Drahflow <drahflow@gmx.de> | 2015-12-17 14:10:02 +0100 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2015-12-17 14:10:02 +0100 |
| commit | cce5f5561a1b0ad030274ad27f895a639cc8773d (patch) | |
| tree | 6dc01c0d563c2e5529639f4554a54697465a1f8f | |
| parent | 237eaad1327506648291a507a202d48b1641a6b4 (diff) | |
Use correct scope when including
| -rw-r--r-- | compiler/standardClient.ey | 2 | ||||
| -rw-r--r-- | examples/working-compiler/include.test | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey index 8d73236..fecbf97 100644 --- a/compiler/standardClient.ey +++ b/compiler/standardClient.ey @@ -1230,7 +1230,7 @@ } each ] =*:FLOAT { ==currentScope ==input - { .value currentScope sys .executeIdentifierScoped =currentScope } /TOKID defvd + { .value currentScope sys .executeIdentifierScoped =currentScope } /TOKID defvst { .value base10decode } /TOKINT defvd { .value "^(\\d+)(\\.(\\d*))?([eE](-)?(\\d+))?$" regex not { "Not in fact a float" die } rep diff --git a/examples/working-compiler/include.test b/examples/working-compiler/include.test index 3aa88f5..0b5cd64 100644 --- a/examples/working-compiler/include.test +++ b/examples/working-compiler/include.test @@ -1,8 +1,10 @@ "included" dump +scope dump + 1 0 add { -- 0 } /add deff -{ +{ < scope dump "/home/drahflow/elymas/examples/working-compiler/include.test" include -} rep +> } rep |
