feat(tazjin/rlox): Implement simple arithmetic operators
Change-Id: I9873bcd281053f4e9820a5119f5992a0b8cb8cfc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2417 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
7fb93fb490
commit
d6d3c12efb
4 changed files with 34 additions and 1 deletions
|
|
@ -5,4 +5,13 @@ pub enum OpCode {
|
|||
|
||||
/// Return from the current function.
|
||||
OpReturn,
|
||||
|
||||
/// Unary negation
|
||||
OpNegate,
|
||||
|
||||
// Arithmetic operators
|
||||
OpAdd,
|
||||
OpSubtract,
|
||||
OpMultiply,
|
||||
OpDivide,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue