Commit Graph

51 Commits (21aec59ad3234a1d07a1222fc05c4f8f904aee37)

Author SHA1 Message Date
Daniel Kolesa 21aec59ad3 rename namespace to cubescript 2021-03-23 23:32:25 +01:00
Daniel Kolesa b9b344cba6 remove cs_ namespace in all API 2021-03-23 23:29:32 +01:00
Daniel Kolesa b3b4624af1 drop cubescript.cc, move parsing stuff from cs_std to cs_parser 2021-03-23 22:17:25 +01:00
Daniel Kolesa 4b766a380f drop the util namespace 2021-03-23 02:02:43 +01:00
Daniel Kolesa 2cc1b0e271 add cs_std.cc, drop cs_util.hh 2021-03-23 01:46:56 +01:00
Daniel Kolesa 4588ae2373 separate cs_state, cs_std 2021-03-23 01:11:21 +01:00
Daniel Kolesa 2f3d5ea938 further clean up list parser api 2021-03-20 19:34:51 +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 5648c1a757 use string_view everywhere that returns or takes a string 2021-03-20 04:10:27 +01:00
Daniel Kolesa b81e419db6 get rid of cs_vector in most places 2021-03-19 22:49:52 +01:00
Daniel Kolesa 47b87ab936 get rid of cs_string in lib_list 2021-03-19 02:55:59 +01:00
Daniel Kolesa b534a6d9af get rid of some unnecessary string allocs 2021-03-19 00:01:57 +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 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 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 8805594bc2 style fixes 2018-04-27 23:53:55 +02:00
Daniel Kolesa 07666c7564 naming consistency 2018-04-25 01:49:58 +02:00
Daniel Kolesa efdc82324e fix includes 2017-06-20 21:21:39 +02:00
Daniel Kolesa f0f6dc437f fix build 2017-04-17 17:13:14 +02:00
Daniel Kolesa 7294580ccf use range_put_all 2017-02-19 18:13:51 +01:00
Daniel Kolesa 5c2c441925 fix build 2017-02-19 16:44:16 +01:00
Daniel Kolesa 73699bd1cf use std::min, max, clamp 2017-02-18 17:49:01 +01:00
Daniel Kolesa e87b1b566c use appender_range directly 2017-02-18 17:28:43 +01:00
Daniel Kolesa 8343979e03 fix build after style update 2017-02-16 19:07:22 +01:00
Daniel Kolesa efe4ee523a fix build 2017-02-13 23:32:15 +01:00
Daniel Kolesa 41eb8b211f begin naming scheme rework 2017-02-13 18:11:19 +01:00
Daniel Kolesa fda734a868 ostd fixes 2017-02-09 21:27:57 +01:00
Daniel Kolesa 896ab4aba2 update according to ostd 2017-02-08 01:07:35 +01:00
Daniel Kolesa 8dc423dcaa update according to ostd 2017-01-30 01:18:55 +01:00
Daniel Kolesa f1d2bbc8b7 update according to ostd 2017-01-29 15:56:38 +01:00
Daniel Kolesa 1c5c0939e1 use size_t 2017-01-25 02:09:50 +01:00
Daniel Kolesa d14c8f8593 update to latest ostd 2017-01-25 01:57:33 +01:00
Daniel Kolesa 57478f6866 move to std::vector 2017-01-25 01:18:29 +01:00
Daniel Kolesa 4f7c05a60d clean up ListParser api 2016-11-07 23:33:53 +01:00
Daniel Kolesa da37ff51d1 rename to get_element 2016-11-06 23:48:50 +01:00
Daniel Kolesa 049cbd0035 make input private in listparser 2016-10-27 00:49:16 +02:00
Daniel Kolesa 4d830b08ad sublist fix 2016-10-24 02:38:52 +02:00
Daniel Kolesa 61135fb79b remove list_length and instead add a method 2016-10-24 02:33:04 +02:00
Daniel Kolesa 15e692f755 save state within ListParser and throw errors on unfinished strings in lists 2016-09-25 15:26:38 +02:00
Daniel Kolesa 4bbe2ca6df clean up list sort 2016-09-15 22:45:28 +02:00
Daniel Kolesa cf21ba0a86 list lib cleanup 2016-09-15 22:34:52 +02:00
Daniel Kolesa b0917ade03 use type inference for shorter command funcs 2016-09-15 00:42:19 +02:00
Daniel Kolesa c5772f0720 add loop control (break and continue) 2016-09-14 23:24:13 +02:00
Daniel Kolesa 083f905913 explicitly pass CsState to all callbacks (might be a different thread eventually) 2016-09-11 23:13:39 +02:00
Daniel Kolesa f1039148b0 allow for arbitrarily sized CsInt/CsFloat 2016-09-09 17:43:23 +02:00