gencpp/test
Ed_ 5d7dfaf666 Heavy refactor..
Isolating large macros to their own directory (components/temp).
- Plan is to remove them soon with proper generation.

Added additional component files, separating the old data_structures header for a set of ast headers.
Header_end also had its inlines extracted out.
Necessary to complete the macro isolation.

ZPL parser dependencies were removed from the core library along with builder, its now generated in bootstrap as pare of making a gen_builder set of files.

Singleheader will be changed in next few commits to reflect this as well (By making builder deps and components a conditional option).

Tests are most likely all broken for now.
2023-08-03 11:01:43 -04:00
..
gen first serialization of singlehearder without asserts. (Still failing after around 4k lines. 2023-08-01 16:07:47 -04:00
parsed renamed parsed and upfront dirs to lowercase 2023-07-29 16:27:36 -04:00
upfront renamed parsed and upfront dirs to lowercase 2023-07-29 16:27:36 -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 some cleanup of unused macros in test files, preparing bootstrap and single header code + scripts 2023-07-24 18:51:49 -04:00
SOA.cpp some cleanup of unused macros in test files, preparing bootstrap and single header code + scripts 2023-07-24 18:51:49 -04:00
test.cpp Progress toward preprocessor parsing, lexing works, parsing does not. 2023-07-30 18:55:57 -04:00
test.parsing.cpp Refactor Test gen_time to GEN_TIME 2023-07-19 00:13:12 -04:00
test.singleheader_ast.cpp test completes singleheader ast construction and serailizes with corruption 2023-08-02 14:01:56 -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.