Skip to content

feat: add support for compounds, quirks, and implementations - #62

Merged
omdxp merged 1 commit into
mainfrom
61-add-user-defined-compound-types-quirks-structural-interfaces-with-c-vtablefunction-pointer-codegen
Jan 1, 2026
Merged

omdxp merged 1 commit into
mainfrom
61-add-user-defined-compound-types-quirks-structural-interfaces-with-c-vtablefunction-pointer-codegen

Conversation

@omdxp

@omdxp omdxp commented Jan 1, 2026

Copy link
Copy Markdown
Owner
  • Implemented parsing for compound, quirk, and impl constructs in the parser.
  • Introduced functions to handle token peeking for non-skippable tokens.
  • Enhanced datatype parsing to recognize user-defined types and handle pointer depth.
  • Updated the transpilation process to generate appropriate C code for compounds and quirks, including vtable support.
  • Added tests for compound field access, quirk method calls, and coercion from implementations.
  • Updated utility functions to recognize new keywords and data types, including void.

- Implemented parsing for `compound`, `quirk`, and `impl` constructs in the parser.
- Introduced functions to handle token peeking for non-skippable tokens.
- Enhanced datatype parsing to recognize user-defined types and handle pointer depth.
- Updated the transpilation process to generate appropriate C code for compounds and quirks, including vtable support.
- Added tests for compound field access, quirk method calls, and coercion from implementations.
- Updated utility functions to recognize new keywords and data types, including `void`.
@omdxp
omdxp merged commit 1c93ea6 into main Jan 1, 2026
3 checks passed
@omdxp
omdxp deleted the 61-add-user-defined-compound-types-quirks-structural-interfaces-with-c-vtablefunction-pointer-codegen branch January 1, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user-defined compound types + “quirks” (structural interfaces) with C vtable/function-pointer codegen

1 participant