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

Add LIST node type to replace ',' nodes #149

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

laurenthuberdeau
Copy link
Collaborator

Context

, nodes were used to make lists, but that made it confusing since , is also used for the comma operator whose nodes had a slightly different shape (the last , always contained 2 non-null children).

This PR replaces these ',' nodes with a new kind of nodes only used for lists. This will make it easier in a follow up PR to convert the AST to a s-exp form.

',' nodes were used to make lists, but that made it confusing since
',' is also used for the comma operator whose nodes had a slightly
different shape (the last ',' always contained 2 non-null children).
@laurenthuberdeau laurenthuberdeau merged commit 8c1fd1f into main Feb 10, 2025
36 checks passed
@laurenthuberdeau laurenthuberdeau deleted the laurent/new_LIST_nodes branch February 10, 2025 19:48
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.

1 participant