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

Can't use index access on lists using identifiers #148

Open kyleect opened 8 months ago

kyleect commented 8 months ago
let i = 0;

let list = [1, 2, 3];

println(list[i]); // out: AttributeError: "list" object has no attribute "i"

https://kyleect.github.io/locks/#/?code=DYUwLgBAlhC8EAYDcAoFpLCgZ0vA2gIwA0EATKQMwC6qKADgE5QB2YwLAFFrvlNQEpUQA