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

Move type defs to hvars #193

Open
philzook58 opened this issue Mar 31, 2022 · 1 comment
Open

Move type defs to hvars #193

philzook58 opened this issue Mar 31, 2022 · 1 comment

Comments

@philzook58
Copy link
Collaborator

User friendliness suggestion.
Arguably there is some duplication of information in two different spots. We declare vars in both C patch and in hvars.
FrontC needs the declarations. We could splice in the computed type declarations to the patch string.

@ivg
Copy link
Collaborator

ivg commented Mar 31, 2022

It is not clear why do you need to declare them at all. The parser needs only to know the type names, not the variable names. And type names could be easily declared via the Clexer.add_type.

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

No branches or pull requests

2 participants