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 support for unary not #29

Merged
merged 5 commits into from
Jun 3, 2024
Merged

add support for unary not #29

merged 5 commits into from
Jun 3, 2024

Conversation

ahuoguo
Copy link
Collaborator

@ahuoguo ahuoguo commented May 31, 2024

Add support for unary operator not.

Also applied some cargo clippy changes.

src/generator/types.rs Outdated Show resolved Hide resolved
src/generator/types.rs Outdated Show resolved Hide resolved
src/parser/tests.rs Outdated Show resolved Hide resolved
src/parser/tests.rs Show resolved Hide resolved
src/parser/tests.rs Show resolved Hide resolved
src/parser/whamm.pest Show resolved Hide resolved
src/parser/whamm_parser.rs Outdated Show resolved Hide resolved
src/parser/types.rs Outdated Show resolved Hide resolved
src/parser/types.rs Outdated Show resolved Hide resolved
}
}
stmts
});
Copy link
Owner

Choose a reason for hiding this comment

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

Are you sure this works? Tracing through the logic, I think you're missing a .collect() or something to actually pull all the values together to have a complete vec of statements.

Copy link
Collaborator Author

@ahuoguo ahuoguo Jun 3, 2024

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

Ahhh, it's mapping to the unwrapped Some contents and then iterating in the for loop. That makes sense.

@ejrgilbert
Copy link
Owner

Also, looks like merging your ast print visitor PR resulted in some merge conflicts here.

@ejrgilbert
Copy link
Owner

Looks good! Merging now

@ejrgilbert ejrgilbert merged commit 397f14d into ejrgilbert:master Jun 3, 2024
1 check passed
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