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 specific push opcodes for different data types #7

Merged
merged 10 commits into from
Apr 8, 2019

Conversation

tk-codes
Copy link
Collaborator

@tk-codes tk-codes commented Apr 8, 2019

Support

  • PushInt
  • PushBool
  • PushChar
  • PushStr
  • Push (generic)

fixes Issue #5

tk-codes added 10 commits April 7, 2019 19:53
Add dependencies to go.mod
The convention in Go is to use MixedCaps or mixedCaps rather than
underscores to write multiword names.
Ref:
https://stackoverflow.com/questions/22688906/go-naming-conventions-for-const
PushBool pushes a boolean value (0 or 1) onto evaluation stack
PushChar puts a byte(0-127) onto stack
Support pushing strings (as ascii char codes) onto stack
Push opcode pushes any number of byte sequence onto the stack
PushInt represents big integer values
PushInt uses only 1 byte zero,
because it does not require sign byte
@tk-codes tk-codes added the feature New feature or request label Apr 8, 2019
@tk-codes tk-codes requested a review from skas102 April 8, 2019 00:53
@skas102 skas102 merged commit 7e1275c into master Apr 8, 2019
@skas102 skas102 deleted the feature/push-opcodes branch April 8, 2019 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants