Commit Graph

91 Commits

Author SHA1 Message Date
Ed_
257e9ebf11 Removed incremental API, fixes for operator__validation, added formatting pass on generated files
Decided not to support the incremental API, its not necessary as the ergonomics are not that big a deal.

Got operators to pass the sanity base cases, which means now all upfront constructors pass the base cases!

Next up is getting it to pass the array container generation.
2023-06-29 22:48:47 -04:00
Ed_
2da78e67d8 Update readmes. Some minor changes to the API. 2023-06-29 01:37:42 -04:00
Ed_
7f645c7357 Finished sanity suite except for operators.
Adjusted upfront api a bit, def_using no longer handles the namespace case, a sepearate function: def_using_namespace now does.

Mostly fixes to the seralization as I generate more cases to find the bugs.
2023-06-29 00:20:23 -04:00
Ed_
44ab1c2fc3 More fixes while completing sanity check for enums
Typepunning failed, didn't know about the difference between C/C++ with strict aliasing in this specific case...
2023-06-28 21:20:29 -04:00
Ed_
0192cd49ef Started sanity test suite (Non-parsed api)
Made some fixes based on errors found while iterating on first generation
2023-06-28 14:43:21 -04:00
Ed_
e74b498686 Removed the DSL macros, More fixes related to memory.
I commented out stuff related to type caching, I may not be using it. Depends on whether I want to keep the parent member in the ast.

DSL macros were removed, I want to keep the macros minimum for the api.
The varadic macros for the body may be problomatic if there is some bs vendor's are doing with memory layouts of structs that are not necessarily POD but only have the assignment operator overloaded.
Worst case I'll have to remove them.

Memory should be fine now to start doing iterations on the array test.

Parser constructors have been on hold for a while. They'll problably not be done until sometime in June.
2023-05-09 21:54:54 -04:00
Ed_
d00de42969 Started to fix some runtime bugs. 2023-05-08 20:54:24 -04:00
Ed_
59042a162c Setup workaround with type casting for POD with assignment overload restriction on varadic args. 2023-05-07 15:46:28 -04:00
Ed_
00b4220333 Got it to compile (without Incremental, parsing, editor, scanner) 2023-05-07 15:03:24 -04:00
Ed_
75588f5227 Finished porting zpl_string impl to gen's String def 2023-05-06 17:23:17 -04:00
Ed_
312bcafa23 Converting api to use custom string types. 2023-05-06 16:15:49 -04:00
Ed_
e34b3694da WIP: Converting api to use custom String types 2023-05-06 15:49:43 -04:00
Ed_
e8264c560f Updated AST::to_string to latest api changes with modules and attributes. 2023-05-06 00:18:44 -04:00
Ed_
0edc3c57b6 Finished updating implementation for new attribute/module usage for everything but the parsing constructors and AST::to_string 2023-05-05 18:10:03 -04:00
Ed_
9a6deb12cc More design/major changes
Found flaws with design while the parser

If I want to support modules I needed to add separaration from the usual specifiers. Same with attributes, decided to minimize my parsing complexity of attributes.

Added a banned header (will not have that be there for the release version
2023-05-01 14:12:07 -04:00
Ed_
38a60e4b91 Somehow overlooked unions... More stuff on parser constructors 2023-04-23 22:53:30 -04:00
Ed_
d541b33b22 Added extern linkage bodies to upfront constructors, more work on parsing constructors
- Made some more parsing helper functions
- Got initial prototype of parse_friend done
- getting ready to complete prototype of parse_function
2023-04-23 19:04:43 -04:00
Ed_
e50e9e094e Made the parse definitions for variable, typedef, using more complete.
Fixed issues seen with expression token parsing
Moved array expression parsing outside of type parsing. Its only done with variable, typdef, and using declarations.
Added parsing of attributes, I'm going to make them separate from the regular specifiers as they are complicated.
2023-04-23 14:33:37 -04:00
Ed_
09491be375 Finished to_string initial impl 2023-04-23 00:43:31 -04:00
Ed_
7ba474069c Docs update, parser impl design changes, AST::add fleshed out. 2023-04-22 22:24:55 -04:00
Ed_
4c4fe98e7e More fixes for zpl update... 2023-04-19 16:57:59 -04:00
Ed_
69e26bbdf8 Updated zpl to latest refactor convention 2023-04-19 15:40:23 -04:00
Ed_
4adb4654e9 Updated parsing constructors with impl to use the lexer. 2023-04-19 00:56:43 -04:00
Ed_
86cd0e1fb7 WIP: Fleshing out parsing constructor
This code commit will compile just backing up stuff before I switch the functions to use the lexer instead of manually sifting through the string.
2023-04-18 22:47:59 -04:00
Ed_
eec93cee78 Finished fleshing out incrementals, started to flesh out parsing 2023-04-12 01:24:43 -04:00
Ed_
d167f74243 Finished implementing the Upfront construcotrs, started to flesh out the incremental constructors. 2023-04-11 22:18:02 -04:00
Ed_
6ca30828c0 Upfront constructors almost completely fleshed out. 2023-04-10 21:33:06 -04:00
Ed_
dfa01221d4 added execution code type, gutted functions with only char const* for name + more 2023-04-10 00:38:47 -04:00
Ed_
56d7aa1d72 Changed zpl implemenation based on latest refactor script I use, refactored code to changes. 2023-04-09 13:59:39 -04:00
Ed_
5e03643d52 FInalized the design, I really hope this time. 2023-04-08 00:29:09 -04:00
Ed_
f5fe30e7cb Design: Added additional keywords to specifiers, added def_friend. Fleshed out scanner. 2023-04-07 12:31:50 -04:00
Ed_
fcf037d50f Design finished all thats left is implementation.
If any changes need to occur design wise at this point, its feature removal for mvp.
2023-04-06 19:19:11 -04:00
Ed_
47c15e7af2 WIP : Design for V1 finalization
There shouldn't be much more changes design wise.

Anything else is based on what needs to be done for it to work.
2023-04-06 02:21:23 -04:00
Ed_
a4cb0c12ef WIP: Design is almost done, impl this weekend. 2023-04-05 03:03:56 -04:00
Ed_
2e8d4a3d93 WIP: Still reworking based on design changes. 2023-04-04 15:53:29 -04:00
Ed_
9957ef0e7d Major changes to library design, change test to reflect it. 2023-04-03 03:55:28 -04:00
Ed_
b4b518f005 WIP: Array generation test. Still need gen.cpp impl. 2023-04-02 17:39:21 -04:00
Ed_
340f466f24 Test now runs generated code, swtiched math test to use polyorphism from cpp.
Now need to make that array test...
2023-04-02 12:25:08 -04:00
Ed_
5e26d53a12 First test works. 2023-04-02 11:53:15 -04:00
Ed_
d66c1e4eb4 test.cpp gen_time compiles (has memory issues though) 2023-04-02 01:07:44 -04:00
Ed_
f09fe6aa15 Iniital commit 2023-04-01 22:21:46 -04:00