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

Remove unnecessary DotProtoEmptyField constructor #255

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

riz0id
Copy link
Collaborator

@riz0id riz0id commented Sep 23, 2024

Minor change improving the AST by removing the DotProtoEmptyField constructor from the DotProtoField. This constructor complicated the AST and was needed nowhere.

@riz0id riz0id self-assigned this Sep 23, 2024
@riz0id riz0id requested a review from j6carey September 23, 2024 18:34
Copy link
Collaborator

@j6carey j6carey left a comment

Choose a reason for hiding this comment

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

This looks good, but it may be that DotProtoEmptyField was an (apparently unsuccessful) attempt to handle empty statements. Perhaps another PR could be created to add support for those, probably by making certain parsers return Maybe types and then applying catMaybes to the lists whose elements are returned by those parsers.

@ixmatus ixmatus merged commit 5fd8580 into master Nov 5, 2024
84 checks passed
@ixmatus ixmatus deleted the riz0id/refact/ast branch November 5, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants