JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
88 stars 4 forks source link

Add functionality to TPIterator #125

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Current issue

We often use macros in the parse stage , and pass the iterator, which is ugly. TPIterator is not much more than an alias at the moment

possible solution

Instead, add two (or more perhaps) functions to TP:

Design wise this also makes more sense since the iterator is stateful.