diff options
author | Adrian Thurston <thurston@complang.org> | 2012-05-22 15:12:20 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-05-22 15:12:20 +0000 |
commit | 82ebe66edf90112f0370dde9460aa86dad3eb813 (patch) | |
tree | 2a3abe6dd94a5e4f796d15f2ef68dafb7bccbae9 /colm/bytecode.h | |
parent | 4f6c820a6374239e11c441ce061880958ff6d679 (diff) | |
download | colm-82ebe66edf90112f0370dde9460aa86dad3eb813.tar.gz |
added trim control flag to print code, auto-trimming all colm print calls
The print implemenation now takes a trim flag. The colm print function now sets
this flag by default. This is a change to the colm language back to 0.5
semantics. The $ conversion uses this flag too (also 0.5 semantics), in the
previous commit it issued a tree trim operation. The % operation gives a string
conversion without triming.
Diffstat (limited to 'colm/bytecode.h')
-rw-r--r-- | colm/bytecode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/colm/bytecode.h b/colm/bytecode.h index 1c8545d1..bb639e94 100644 --- a/colm/bytecode.h +++ b/colm/bytecode.h @@ -214,6 +214,7 @@ typedef unsigned char uchar; #define IN_INT_TO_STR 0x8b #define IN_TREE_TO_STR 0x8c +#define IN_TREE_TO_STR_NOTRIM 0xfd #define IN_CREATE_TOKEN 0x8d #define IN_MAKE_TOKEN 0x8e |