kyleect / locks

A toy language branched from Lox to learn language implementation and tooling. Forked from loxcraft
https://kyleect.github.io/locks/#/docs
MIT License
0 stars 0 forks source link

Local variable declarations not showing up in disassembled code #70

Closed kyleect closed 6 months ago

kyleect commented 7 months ago
{
  var a;
  var b;
  a = 123;
}

0000 OP_NIL
0001 OP_NIL
0002 OP_CONSTANT         0 == '123'
0004 OP_SET_LOCAL        0
0006 OP_POP
0007 OP_POP
0008 OP_POP
0009 OP_NIL
0010 OP_RETURN