pocketlang/src
Alexander Patel 59333177cd pk_core: implement list addition
This commit implements list addition. A new list is allocated, and
the contents of l1 and l2 are concatenated onto the list.

This is done by extending the buffer template macro to support a
`concat` operation, which given an `other` buffer, appends all
elements of the `other` buffer to the end of the `self` buffer.
Allocations are done as needed.

We implement this additional operation, since the alternative would
be to call `reserve()` for each `write()` operation, which doesn't
seem ideal.

Issue: #55
2021-06-15 20:44:10 -07:00
..
include Fix typos + rename variables (#73) 2021-06-15 13:07:49 +05:30
pk_buffers.h pk_core: implement list addition 2021-06-15 20:44:10 -07:00
pk_common.h Fix typos + rename variables (#73) 2021-06-15 13:07:49 +05:30
pk_compiler.c bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30
pk_compiler.h Fix typos + rename variables (#73) 2021-06-15 13:07:49 +05:30
pk_core.c pk_core: implement list addition 2021-06-15 20:44:10 -07:00
pk_core.h Add support for bitwise XOR, LSHIFT and RSHIFT operators (#63) 2021-06-13 20:27:48 +05:30
pk_debug.c Tail call optimization implemented 2021-06-13 21:57:54 +05:30
pk_debug.h disassemble implemented 2021-06-12 16:34:10 +05:30
pk_opcodes.h Fix typos + rename variables (#73) 2021-06-15 13:07:49 +05:30
pk_utils.c some (minor) code cleanups 2021-06-11 13:16:55 +05:30
pk_utils.h Merge pull request #76 from ThakeeNathees/ci-workflow 2021-06-16 03:28:30 +05:30
pk_var.c pk_core: implement list addition 2021-06-15 20:44:10 -07:00
pk_var.h pk_core: implement list addition 2021-06-15 20:44:10 -07:00
pk_vm.c Fix typos + rename variables (#73) 2021-06-15 13:07:49 +05:30
pk_vm.h bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30