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

More AST & parser cleanup #7

Merged
merged 5 commits into from
May 12, 2021
Merged

Conversation

dekrain
Copy link
Contributor

@dekrain dekrain commented May 12, 2021

I've split the AST nodes into 3 primary categories: expressions, declarations, and statements, allowing for easier matching/referencing in the future, for semantic analysis.

I've also moved the dumping from virtual functions to a separate class, so now the AST nodes themselves are 1 pointer slimmer and don't hold dynamic type info, hypothetically.

@dekrain dekrain requested a review from binkiklou May 12, 2021 18:11
Copy link
Member

@binkiklou binkiklou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

@binkiklou binkiklou merged commit ba7c759 into chirp-language:main May 12, 2021
@dekrain dekrain deleted the cleanup2 branch May 12, 2021 21:26
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

Successfully merging this pull request may close these issues.

2 participants