summaryrefslogtreecommitdiffstats
path: root/vmop.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-03 20:47:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-03 20:47:38 -0700
commitafad01168d6506a828eb7cd76e5e06ef02733501 (patch)
treed3f3f753882c0ddcbeb54133a4277e9ebb1a6572 /vmop.h
parent7bc150f6d87b836b7690f8d73ee815ea8c718b13 (diff)
downloadtxr-afad01168d6506a828eb7cd76e5e06ef02733501.tar.gz
txr-afad01168d6506a828eb7cd76e5e06ef02733501.tar.bz2
txr-afad01168d6506a828eb7cd76e5e06ef02733501.zip
parser: avoid consing for buf literals.
* parser.y (buflit, buflit_items): Don't cons up a list of bytes in buflit_items which are then assembled into a buffer. Rather, the buflit_items rules construct and fill a buffer object directly. The buflit rule then just has to signal the end of the buffer literal to the lexer, and trim the buffer to the actual size. We will need this for efficient loading of compiled files, in which the virtual machine code is represented as a buffer literal.
Diffstat (limited to 'vmop.h')
0 files changed, 0 insertions, 0 deletions