Daniel Kolesa
d7c93fa8b9
make format errors internal errors
2021-03-20 19:54:46 +01:00
Daniel Kolesa
2f3d5ea938
further clean up list parser api
2021-03-20 19:34:51 +01:00
Daniel Kolesa
82d366366e
drop libostd requirement entirely
2021-03-20 08:23:51 +01:00
Daniel Kolesa
cb926a5750
get rid of ostd requirements inside library entirely
2021-03-20 07:24:25 +01:00
Daniel Kolesa
10b2a81cec
redo (un)escape_string around output iterators
2021-03-20 06:18:31 +01:00
Daniel Kolesa
320fdbaefd
use c++20 std::span
2021-03-20 05:41:25 +01:00
Daniel Kolesa
4068c96ec2
remove the auxiliary run_<type> APIs, they are fairly useless now
2021-03-20 05:14:14 +01:00
Daniel Kolesa
d626fba537
remove file exec api
...
this is something each thing will want to do on its own...
but add a new set of calls that take code source for debug info
2021-03-20 05:10:19 +01:00
Daniel Kolesa
55d5397f4f
implement move behavior for cs_value
...
this prevents things from going horribly wrong when people
do move the values (since the implicit implementations don't
take care of handling the refcounts)
2021-03-20 04:49:47 +01:00
Daniel Kolesa
5648c1a757
use string_view everywhere that returns or takes a string
2021-03-20 04:10:27 +01:00
Daniel Kolesa
126d6ab2b6
use a stolen buffer for strupper/lower
2021-03-19 01:31:34 +01:00
Daniel Kolesa
af1a85fb91
get rid of public format_int/float (use cs_value)
2021-03-19 00:34:12 +01:00
Daniel Kolesa
26bcc43578
get rid of tvals_concat in favor of simpler api
2021-03-19 00:31:18 +01:00
Daniel Kolesa
d3ec4a47dd
ditch cs_string from public headers + style fix
2021-03-18 23:56:25 +01:00
Daniel Kolesa
9d0494a9da
replace list_parser with a simpler api
2021-03-18 23:53:16 +01:00
Daniel Kolesa
704f9217f7
unify enum style
2021-03-18 20:55:14 +01:00
Daniel Kolesa
7023e09049
don't use memcpy for non-trivial structures
2021-03-18 01:37:38 +01:00
Daniel Kolesa
6ed9ae1235
get rid of standard i/o inside vm
2021-03-18 00:03:30 +01:00
Daniel Kolesa
fb8668a508
use more stringrefs
2021-03-17 23:32:38 +01:00
Daniel Kolesa
7eaf3679a4
get rid of cs_value::get_strr
2021-03-17 21:59:37 +01:00
Daniel Kolesa
2f5bb697eb
use string refs more instead of allocated strings
2021-03-17 21:46:37 +01:00
Daniel Kolesa
8b7f36319d
eliminate length field in cs_value
2021-03-17 21:16:25 +01:00
Daniel Kolesa
e3cff816c7
reduce copying strings around (ensure refs are not erased)
2021-03-17 21:00:19 +01:00
Daniel Kolesa
64130a12bf
remove handling of constants from codegen, bytecode and cs_value
...
also drop move semantics on cs_value
2021-03-17 20:41:08 +01:00
Daniel Kolesa
c004db42c6
refactor cs_value and related structures to contain state
...
this will allow us to intern strings inside cs_value
2021-03-17 01:26:30 +01:00
Daniel Kolesa
8c77724f88
return alias value by value
2021-03-17 00:32:25 +01:00
Daniel Kolesa
dcae5b30b2
initial implementation of unique/interned string manager
2021-03-16 00:45:09 +01:00
q66
8805594bc2
style fixes
2018-04-27 23:53:55 +02:00
q66
fb78b4acdd
initial support for "threads"
2018-04-26 19:23:11 +02:00
q66
bd008ffb46
introduce list_range
2018-04-26 00:20:23 +02:00
q66
07666c7564
naming consistency
2018-04-25 01:49:58 +02:00
q66
8d62c09f88
fix build
2017-04-23 15:34:45 +02:00
q66
f0f6dc437f
fix build
2017-04-17 17:13:14 +02:00
q66
d744c6b1c6
remove dependency on types.hh
2017-04-04 00:28:56 +02:00
q66
7294580ccf
use range_put_all
2017-02-19 18:13:51 +01:00
q66
5c2c441925
fix build
2017-02-19 16:44:16 +01:00
q66
e87b1b566c
use appender_range directly
2017-02-18 17:28:43 +01:00
q66
14436d6aa0
fix build
2017-02-16 20:51:03 +01:00
q66
c2a86f1625
build fix
2017-02-16 20:03:08 +01:00
q66
8343979e03
fix build after style update
2017-02-16 19:07:22 +01:00
q66
9b4ea3e765
replace removed PointerRange
2017-02-14 17:41:15 +01:00
q66
efe4ee523a
fix build
2017-02-13 23:32:15 +01:00
q66
41eb8b211f
begin naming scheme rework
2017-02-13 18:11:19 +01:00
q66
140ccf08c6
add cs_internal_error exception and use it for unrecoverable unlikely errors
2017-02-12 22:52:43 +01:00
q66
fda734a868
ostd fixes
2017-02-09 21:27:57 +01:00
q66
2536179500
use standard type traits
2017-02-09 20:59:14 +01:00
q66
896ab4aba2
update according to ostd
2017-02-08 01:07:35 +01:00
q66
0dd69fedea
remove memory.hh includes
2017-02-01 20:20:57 +01:00
q66
6ac12f6d18
remove CsAllocator
2017-02-01 20:17:21 +01:00
q66
d88e9de11a
use unordered_map
2017-01-31 19:28:34 +01:00