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

bytecode: Implement unary expressions #279

Merged
merged 1 commit into from
Feb 21, 2024
Merged

bytecode: Implement unary expressions #279

merged 1 commit into from
Feb 21, 2024

Conversation

Rossiar
Copy link
Collaborator

@Rossiar Rossiar commented Feb 19, 2024

This change adds the 'not' and 'minus' unary operators
to the compiler and vm.

Co-authored-by: joshcarp joshcarp@users.noreply.github.com
Co-authored-by: pgmitche pgmitche@users.noreply.github.com

Copy link
Member

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

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

looks pretty good to me too, just a couple of thoughts.
waiting for @camh- here too.

pkg/bytecode/code.go Outdated Show resolved Hide resolved
pkg/bytecode/vm_test.go Outdated Show resolved Hide resolved
Copy link
Member

@juliaogris juliaogris left a comment

Choose a reason for hiding this comment

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

@Rossiar - if you rebase and take this out of draft, i think we are good.

This change adds the 'not' and 'minus' unary operators
to the compiler and vm.

Co-authored-by: joshcarp <joshcarp@users.noreply.github.com>
Co-authored-by: pgmitche <pgmitche@users.noreply.github.com>
pkg/bytecode/vm_test.go Show resolved Hide resolved
@juliaogris juliaogris merged commit ffd5e2e into main Feb 21, 2024
3 checks passed
@juliaogris juliaogris deleted the compiler-unary branch February 21, 2024 22:08
@juliaogris juliaogris linked an issue Mar 18, 2024 that may be closed by this pull request
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.

Implement compiler with stack-based VM
3 participants