Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameMaker struct type compiler support #1084

Closed
khronii opened this issue Sep 23, 2022 · 0 comments · Fixed by #1518
Closed

GameMaker struct type compiler support #1084

khronii opened this issue Sep 23, 2022 · 0 comments · Fixed by #1518
Labels
compiler Problems with the compiler enhancement New feature or request

Comments

@khronii
Copy link

khronii commented Sep 23, 2022

Which component should be improved?

Compiler

Describe your feature suggestion in more detail

image

I checked out that UMT decompiles struct very well, but it can't be compiled back.

Implementation-wise, I think there are two ways (not exclusive to each other) to handle structs. One way is to modify parser: ParseBlock() should detect structs with : token. The other way is to modify lexer: opening/closing braces should be lexed as OpenBlock/CloseBlock or OpenStruct/CloseStruct(to be added) based on the context and then be parsed separately from blocks.

I'm not familiar with GameMaker nor with Compiler stuff so I might be wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Problems with the compiler enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants