gencpp/test
Ed_ c2319b9651 Fixes for test.singleheader_ast.cpp, also added a bench for it.
On a Ryzen R9 5950 it takes 11 ms to generate AST and 21 ms to serialize to file.
2023-08-06 17:46:17 -04:00
..
gen first serialization of singlehearder without asserts. (Still failing after around 4k lines. 2023-08-01 16:07:47 -04:00
parsed No longer using components/temp/ast_inlines (switched to helper function to avoid macro usage) 2023-08-06 14:58:43 -04:00
upfront No longer using components/temp/ast_inlines (switched to helper function to avoid macro usage) 2023-08-06 14:58:43 -04:00
meson.build Updated readme, added def_body and AST::validate_body 2023-07-12 15:59:47 -04:00
parsing.cpp Fixes to memory mangment, library is much faster now. 2023-07-16 18:00:07 -04:00
parsing.hpp Fixes to memory mangment, library is much faster now. 2023-07-16 18:00:07 -04:00
Readme.md Refactor Test gen_time to GEN_TIME 2023-07-19 00:13:12 -04:00
sanity.cpp Library can now construct into AST and serialization itself (singleheader). 2023-08-04 16:12:13 -04:00
SOA.cpp Library can now construct into AST and serialization itself (singleheader). 2023-08-04 16:12:13 -04:00
test.cpp Library can now construct into AST and serialization itself (singleheader). 2023-08-04 16:12:13 -04:00
test.parsing.cpp Refactor Test gen_time to GEN_TIME 2023-07-19 00:13:12 -04:00
test.singleheader_ast.cpp Fixes for test.singleheader_ast.cpp, also added a bench for it. 2023-08-06 17:46:17 -04:00
test.upfront.cpp got old tests working (test.parsing.cpp and test.upfront.cpp) 2023-07-29 16:00:06 -04:00
upfront.cpp Fixes to memory mangment, library is much faster now. 2023-07-16 18:00:07 -04:00
upfront.hpp Refactor Test gen_time to GEN_TIME 2023-07-19 00:13:12 -04:00
validate_bootstrap.cpp Heavy refactor.. 2023-08-03 11:01:43 -04:00
validate_singleheader.cpp Heavy refactor.. 2023-08-03 11:01:43 -04:00

Test

The following tests focus on attempting to generate some math, containers, and the memory module of zpl.

Not all the files are written how I would practically use the library, the containers for example would be better on in c++ as templates, since the templates they generate are trivial symbols to inspect or debug.

An example of a non-trivial generation is a container for elements with SOA or AOS policy for layout. (If a unified element syntax is desired)

The test is divided between two major sets of tests: Parsed and Upfront.