diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-13 16:16:07 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-13 16:16:07 -0700 |
| commit | d13bcde2b9306e0c87b055faed88da76bd3ff41e (patch) | |
| tree | 4c9e974d8e448adb6f6c1ba232b4114137aba4cc /nomsu.moon | |
| parent | 7435b61380054307148ec2c3a6af6d7ef9187fbe (diff) | |
Renamed repr_if_not_string to "stringify" and added nomsu:stringify for
convenience.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -197,6 +197,7 @@ class NomsuCompiler @debug = false @utils = utils @repr = (...)=> repr(...) + @stringify = (...)=> utils.stringify(...) @loaded_files = setmetatable({}, {__index:parent and parent.loaded_files}) if not parent @initialize_core! @@ -436,7 +437,7 @@ class NomsuCompiler @writeln "#{colored.bright "EXPR:"} #{expr}, #{colored.bright "STATEMENT:"} #{statement}" if statement @error "Cannot use [[#{bit.src}]] as a string interpolation value, since it's not an expression." - insert concat_parts, "nomsu.utils.repr_if_not_string(#{expr})" + insert concat_parts, "nomsu:stringify(#{expr})" if string_buffer ~= "" insert concat_parts, repr(string_buffer) |
