Commit Graph

40 Commits (master)

Author SHA1 Message Date
Daniel Kolesa 54a7b4b7f1 add assert in lib_base, remove formatting public error api 2021-05-08 17:20:56 +02:00
Daniel Kolesa 9437e0951b eliminate type separation between IVAR/FVAR/SVAR 2021-05-07 00:07:13 +02:00
Daniel Kolesa 139ead5d72 fold BC_INST_IVAR/FVAR/SVAR into one instruction 2021-05-06 03:42:58 +02:00
Daniel Kolesa bd1e7825d8 be consistent with usage of get_/set_ prefixes 2021-05-05 03:16:32 +02:00
Daniel Kolesa 9c14e6ca65 rename r type to v 2021-04-29 20:02:04 +02:00
Daniel Kolesa 5d4bcaf797 use an ellipsis for variadics instead of V 2021-04-29 19:56:48 +02:00
Daniel Kolesa e14d5c4aa3 remove automatic concatenating variadics
these were pretty much just pointless sugar for something that
can be better achieved with ordinary variadics and an extra call
(which is what it did, except in VM)
2021-04-29 19:29:51 +02:00
Daniel Kolesa e52720ebb2 rename N in arglist to # 2021-04-29 04:15:16 +02:00
Daniel Kolesa da7548664c remove b and F arg types + renames + set default args to none
setting default args to none rather than whatever default
value allows for easily checking whether the arg was set,
without losing anything (since e.g. calling get_integer on
a none value still returns a 0)

'b' and 'F' were kinda ugly and handled special niches, which
are no longer a thing now that we're defaulting to none
2021-04-29 01:40:55 +02:00
Daniel Kolesa 92281e88c1 remove state::get_alias(), make get_ident() return an optional 2021-04-26 02:42:08 +02:00
Daniel Kolesa 3e8db1042a fix ivar and fvar lookup code 2021-04-24 23:43:34 +02:00
Daniel Kolesa a5003678da fix build with libc++, and try using it in CI with clang 2021-04-12 19:53:24 +02:00
Daniel Kolesa 7229672f56 clean up command call parsing 2021-04-11 00:13:10 +02:00
Daniel Kolesa 0ee0ebfb42 clean up the main parser path 2021-04-10 19:32:01 +02:00
Daniel Kolesa 51f09c3dfb clean up some more parser routines 2021-04-10 07:32:44 +02:00
Daniel Kolesa a6426c60ee rewrite compilearg 2021-04-10 05:53:17 +02:00
Daniel Kolesa e5cf9452f2 rewirte compileblockmain 2021-04-10 05:32:07 +02:00
Daniel Kolesa eac137e3c8 rewrite compileblocksub 2021-04-10 04:51:11 +02:00
Daniel Kolesa c4d39caa61 rewrite compilelookup 2021-04-10 04:40:58 +02:00
Daniel Kolesa 6d6a115d0c remove leftover junk 2021-04-10 03:01:41 +02:00
Daniel Kolesa d2b53b174e move all codegen stuff, make instruction vector private 2021-04-10 02:56:49 +02:00
Daniel Kolesa 05661662d2 more codegen conversions 2021-04-10 02:15:06 +02:00
Daniel Kolesa 63023f8c5e remove parser_state::gen_main 2021-04-10 00:54:28 +02:00
Daniel Kolesa 1bc94bf5af move some more codegen into proper place 2021-04-10 00:42:01 +02:00
Daniel Kolesa 295c905c32 more codegen utils 2021-04-09 03:34:48 +02:00
Daniel Kolesa 3790435c34 add more codegen utils 2021-04-09 03:22:34 +02:00
Daniel Kolesa 51da22be06 add ivar/fvar/svar lookup funcs in codegen 2021-04-09 03:14:34 +02:00
Daniel Kolesa bac186a0c7 move compileblockstr/compileunescapestr logic into gen 2021-04-09 02:54:36 +02:00
Daniel Kolesa dcd5f61748 fewer direct accesses to code vector 2021-04-09 01:03:29 +02:00
Daniel Kolesa 5f67b205df initial bits for separation of codegen from parser 2021-04-09 00:41:55 +02:00
Daniel Kolesa ccb0c09d59 rename codegen_state to parser_state and move it
later commits will rewrite the parser and separate the codegen
bits into their own API
2021-04-08 23:35:30 +02:00
Daniel Kolesa e4c4c51055 remove more problematic public members 2021-03-31 01:48:56 +02:00
Daniel Kolesa 13d46881e8 windows fixes and other correctness/portability stuff 2021-03-31 01:13:35 +02:00
Daniel Kolesa bd9a6cbf7c eliminate more future private accesses 2021-03-26 02:59:42 +01:00
Daniel Kolesa d80af7b159 hide internal_state from public state struct 2021-03-25 01:37:42 +01:00
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 4b6c284ea1 separate cs_parser.cc, drop cs_util.cc 2021-03-23 02:00:23 +01:00