chenhsi / Ambroscum

An interpreter/compiler for a programming language we're probably going to create
MIT License
0 stars 0 forks source link

For loop #1

Closed chenhsi closed 10 years ago

chenhsi commented 11 years ago

Need to decide how these are going to be structured, and then implement them.

Main choices right now are triple statements (C/Java style), iterables Java style), or iterators/generators (Python style), keeping in mind that we can include multiple types.

chenhsi commented 10 years ago

A basic iterator loop is now supported. It currently only iterates through lists; as objects/typing is not implemented, supporting other user-defined iterable objects will be postponed until said objects exist. At that point, however, perhaps being iterated on might be an operator on the object?