Skip to content

Add enum support#49

Open
pbedn wants to merge 1 commit into
masterfrom
codex/add-enum-support-in-pb-language
Open

Add enum support#49
pbedn wants to merge 1 commit into
masterfrom
codex/add-enum-support-in-pb-language

Conversation

@pbedn

@pbedn pbedn commented Aug 7, 2025

Copy link
Copy Markdown
Owner

Summary

  • add EnumMember and EnumDef nodes
  • parse enum definitions
  • type check enums and allow using enum members in expressions
  • generate C enums and print names
  • provide stdlib enum stub and example
  • test enum parsing, typing, codegen and runtime

Testing

  • pytest -q

https://chatgpt.com/codex/tasks/task_e_687e24b8ea388321832be5fcf97fa041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant