This repository was archived by the owner on Feb 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Add a symbol table #72
Comments
Hm, I need to have more information / find more material about that symbole table they’re using. Do you have any link? |
Alternatively, the mesa glsl compiler parses to a low level AST and then lifts to a HIR: |
I'm experimenting with HIR approach here: https://github.com/jrmuizel/glsl-to-spriv |
@jrmuizel great! I haven’t had enough spare time lately to look into that, but feel free to go for it! I’ll have a look at the code you wrote, I’m interested in the approach. :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is needed to do semantic analysis and translation to spirv.
Do you have any thoughts on how you'd like to represent it?
glslang builds the symbol table during parsing and refers to it in the resulting parse tree. That has the advantage of not needing to represent both an unresolved syntax tree and a syntax tree with resolved symbols.
The text was updated successfully, but these errors were encountered: