Commit Graph

66 Commits

Author SHA1 Message Date
ed dda70fce36 can't use static globals on static libs 2025-02-04 21:23:51 -05:00
ed 6481313969 Various fixes and adjustments
* moved constants to components/constants.hpp (adjsuted generators accordingly)
* parser accepts include & defineas parameter identifiers (will add more flags for keywords when necessary
2025-02-04 15:35:28 -05:00
ed bdd9c9bcdf Fixes for building all library types 2025-01-30 13:57:42 -05:00
ed ca7ff99a79 Code type coercion for builder_print in C11 library using generic selector. 2024-12-17 10:03:50 -05:00
ed 08dcc3152f Testing c-library with Cuik parsing... 2024-12-16 18:28:26 -05:00
ed 6689235691 minor updates for better unused code cleanup in the c_library 2024-12-16 17:18:52 -05:00
ed e4f564b165 Tok_Capture_* -> Tok_Paren_*
Was not a correct name for it
2024-12-15 23:28:44 -05:00
ed 5d8883ec45 trying diff splash 2024-12-15 23:02:32 -05:00
ed c90c210e04 fixes for c library 2024-12-15 22:53:32 -05:00
ed 967a044637 Got .lib and .dlls setup for the C11 library 2024-12-14 00:10:07 -05:00
ed b5cf633e98 Updated c_library generation to support latest changes with context struct (also prepped for static/dynamic linkage) 2024-12-13 22:09:43 -05:00
ed 401f85f673 corrections to c_library.cpp, package_release.ps1 working for all zips 2024-12-11 02:04:22 -05:00
ed 44d0a9cf9d c_library compiles 2024-12-10 23:35:47 -05:00
ed c8d6c27f07 singleheader compiles again 2024-12-10 22:20:40 -05:00
ed aecc2c59dd segemented builds 2024-12-10 21:59:13 -05:00
ed 0e32838da1 base works 2024-12-10 21:35:46 -05:00
ed ef78772278 work on gettings things compiling again after restructuring 2024-12-10 20:45:00 -05:00
ed 8e3e66b3c1 Updates to docs and scripts 2024-12-10 16:38:01 -05:00
ed 2c51a2f9c8 WIP: Restructuring project 2024-12-10 16:13:14 -05:00
ed 0046c4a223 c_library refacotring works, and compiles with all content from the base project.
I need to make the refactor step happen before formatting with clang-format in the metaprogram instead of calling it from powershell
2024-12-10 13:56:56 -05:00
ed 451b71884c WIP: Broken af 2024-12-07 17:17:02 -05:00
ed 4d638a7255 borken : lots of stuff changed, explaining in later commit...v 2024-12-07 00:21:09 -05:00
ed 266163557f Finished draft pass verifying containers.array.hpp is equivalent to container.hpp's array.
gen_generic_selection_function_macro now works generically
Imprvoed _Generic function overloading examples
2024-12-05 21:01:04 -05:00
ed a3407c14d5 First compiling version of operator overloading for C! (on both msvc and clang using -std=c11 flag, using _Generic selection with some helper macros)
Extremely satsified with how unofuscated the generated code is for _Generic.
Still fixing up the templated container code though in the c-codegen
2024-12-05 17:04:17 -05:00
ed 3a55af9ce4 WIP(broken): Converting base library to use c-linkage symbols only 2024-12-04 11:01:53 -05:00
ed 80cb3f4eca Significant progress reducing c++ feature usage in the library. 2024-12-01 18:50:37 -05:00
ed fbdb870986 Finished first pass reviewing memory.hpp for C lib generation 2024-11-30 23:38:27 -05:00
ed 6d04165b96 Reduce cpp freatures usage of Array container.
Almost ready to be inter-operable with C
2024-11-30 18:54:19 -05:00
ed 5527a27f7b prepare c_library meta-program a bit 2024-11-30 16:54:03 -05:00
ed c1878265c8 Minimizing reformatting of generated library files 2024-10-27 20:01:54 -04:00
ed d89c9a6072 de-hardcode target_arch.psm1 import 2024-10-25 13:11:21 -04:00
ed 6aa99ac1d5 change how path_root is resolved so it works when cloned into another repository 2024-10-25 13:07:39 -04:00
ed f90c0a59b6 inital implemention of UE library variant generator completed 2024-10-25 05:01:37 -04:00
ed 0542204b35 progress on unreal variant generator 2024-10-25 03:00:07 -04:00
ed 3319bfcaa9 Updates to test and workspace
Added a more granular test using the original library files. Already helped me identify a bug.
2023-11-21 20:03:51 -05:00
ed 919166efa1 fix for build script 2023-10-25 23:55:29 -04:00
ed d0f3b6187e Added initial support for comma-separated variable declaration lists. 2023-10-25 00:25:35 -04:00
ed d5a4b77033 Some initial boostrapping of new visual ast aux project 2023-10-24 03:14:20 -04:00
ed eaba60f80b Updated build scripts to latest setup used with HandmadeHero repo 2023-10-24 01:40:21 -04:00
ed a8708abf8b WIP : Various changes to project before small hiatus. (Broken)
I need to manually review these as the changes have various errors that are difficult to diagnose why.

I took a break to do handmade hero and now a bit rusty.
2023-09-25 12:12:11 -04:00
ed 2200bcde9a Improved singleheader test
Need to make the debug_str provided by the AST type aware to provide as much contextual information as possible (finally got to this point with validation).

Singleheader test now directly calls clang-format to cleanup the reconstructed copy of the singleheader. Its needed to remove any sort of formatting discrepancies found by the parser since its sensistive to that for new-lines, etc.
2023-09-05 13:36:59 -04:00
ed 49a2cd7b2c Uncomment formatting comments in build script (forgot to after completing fixes) 2023-08-22 02:17:28 -04:00
ed c4846dad26 Formatting fixes 2023-08-22 01:51:59 -04:00
ed a42e241afb Got rid of the temp compoonent files, they are now generated via bootstrapping.
This isn't the last step though everything in the main project directory that isn't md files needs to be generated only.
Can't do that till testing is robust enough...
2023-08-21 23:28:39 -04:00
ed 9f64760b7a Commenting out includes to diagnose... 2023-08-21 21:20:29 -04:00
ed 050b00f28a WIP - Broken Compile : Added pragma once and includes to all files + Parser fixes, and String improvements
Adding the pragma once and includes the files broke compilation, still diagnosing why.

- Some string functions were moved to the cpp, still need to do some more evaluation of it and the containers...
- Added support for forceinline and neverinline to parsing (untested)
- Added support for specifiers in operator cast such as explicit, inline/forceinline/neverinline, etc.
    - Before it only support const.
    - Still need to support volatile.
- Forceinline was not supported at all for tokenization, fixed that.
2023-08-21 20:30:13 -04:00
ed 7d1c499e7b Build script improvements
Made sure devshell only loads up the msvc env once.
2023-08-20 22:39:46 -04:00
ed 05fa62eced Test building & generation fixed with altest scripts 2023-08-20 15:45:06 -04:00
ed 2f7836b191 Fixes to buildscript 2023-08-20 13:18:09 -04:00
ed f574a9ba9a Further improvements to build script
test is failing to complete properly, need to debug...
2023-08-20 13:02:50 -04:00