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:
Vincent Ambo 2021-01-18 00:08:30 +03:00 committed by tazjin
parent 7fb93fb490
commit d6d3c12efb
4 changed files with 34 additions and 1 deletions

View file

@ -5,4 +5,13 @@ pub enum OpCode {
/// Return from the current function.
OpReturn,
/// Unary negation
OpNegate,
// Arithmetic operators
OpAdd,
OpSubtract,
OpMultiply,
OpDivide,
}