zxul767 / lox

An interpreter for the Lox language
1 stars 0 forks source link

add `dict` class to Lox's standard library #20

Open zxul767 opened 1 year ago

zxul767 commented 1 year ago

In jlox we already have all the backend support required (introduced when list was implemented), so it should be relatively easy to add (minus support for literals).

In clox the implementation shouldn't be too hard either, but it's a bit more involved since we haven't added list yet. The backing infrastructure is in place, though (namely, table.c)