summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-13 12:31:14 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-13 12:31:14 -0400
commitd64259519fc3bb02049c6a9f72d8e9d5373c6ad2 (patch)
tree37905ded710aea5e5e87b572c4abe5d051bc7fc9
parent0c242026b82798da7d25d4a3e52bf06dde0ac14d (diff)
downloadcolm-d64259519fc3bb02049c6a9f72d8e9d5373c6ad2.tar.gz
stringify when sending to streams
Since stream may be backed by parsers, we need to do this to mainain the send semantics, however it breaks indentation. Will need to alter the strategy to restore indentation.
-rw-r--r--src/bytecode.c2
-rw-r--r--src/synthesis.cc4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 41cd1445..68528165 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -4587,8 +4587,6 @@ again:
break;
}
-
-
/* Halt is a default instruction given by the compiler when it is
* asked to generate and instruction it doesn't have. It is deliberate
* and can represent "not implemented" or "compiler error" because a
diff --git a/src/synthesis.cc b/src/synthesis.cc
index dc9289d8..922fc598 100644
--- a/src/synthesis.cc
+++ b/src/synthesis.cc
@@ -1721,9 +1721,9 @@ UniqueType *LangTerm::evaluateSend( Compiler *pd, CodeVect &code ) const
UniqueType *varUt = varRef->lookup( pd );
if ( varUt == pd->uniqueTypeStream )
- evaluateSendParser( pd, code, false );
+ evaluateSendParser( pd, code, true );
else if ( varUt->listOf( pd->uniqueTypeStream ) )
- evaluateSendParser( pd, code, false );
+ evaluateSendParser( pd, code, true );
else if ( varUt->parser() )
evaluateSendParser( pd, code, true );
else