From f1a2c936de700ddf1c7ccb650be9598db40c13d4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 1 Nov 2017 16:49:11 -0700 Subject: Fixed some codegen stuff, optimized "say" for the common case of string literals. --- lib/utils.nom | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/utils.nom') 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)) -- cgit v1.2.3