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

Make an Abstract Class for Ast Node to Support Generic Helper Function in Visitor #648

Open
aferr opened this issue Aug 10, 2022 · 0 comments

Comments

@aferr
Copy link
Collaborator

aferr commented Aug 10, 2022

Make an Abstract Class for Ast Nodes which includes calls to Accept and make the elements of ast.h extend from this abstract class so that the abstract class can be referenced in a generic helper function in the implementation of the visitor. Context

Probably having an abstract class that defines the functions available to all AST nodes will help us implement other design patters beyond just this one.

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

1 participant