diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-11-01 16:49:11 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-11-01 16:49:11 -0700 |
| commit | f1a2c936de700ddf1c7ccb650be9598db40c13d4 (patch) | |
| tree | 237ac9a52295f0c5dbc0dbb5624e0c2e5940f263 /lib/utils.nom | |
| parent | cbd876673a4accc23aca16c015c20b819a2685b5 (diff) | |
Fixed some codegen stuff, optimized "say" for the common case of string
literals.
Diffstat (limited to 'lib/utils.nom')
| -rw-r--r-- | lib/utils.nom | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/utils.nom b/lib/utils.nom index b398827..965d338 100644 --- a/lib/utils.nom +++ b/lib/utils.nom @@ -27,9 +27,6 @@ compile [%str with %patt replaced with %sub, %str s/%patt/%sub] to: compile [%str with %patt replaced with %sub %n times, %str s/%patt/%sub/%n] to: "((\(%str as lua)):gsub(\(%patt as lua), \(%sub as lua), \(%n as lua)))" -compile [say %str] to: ".." - |nomsu:writeln(nomsu:stringify(\(%str as lua))) - # Number ranges compile [%start to %stop by %step, %start to %stop via %step] to: ".." |nomsu.utils.range(\(%start as lua), \(%stop as lua), \(%step as lua)) |
