Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating Code with for Loops #88

Open
juansc opened this issue Apr 16, 2015 · 0 comments
Open

Generating Code with for Loops #88

juansc opened this issue Apr 16, 2015 · 0 comments

Comments

@juansc
Copy link
Contributor

juansc commented Apr 16, 2015

let's say we have the following code:

for x in a
    ...code...
end

This should become the following code in JavaScript

for( x = a.next(); x != EOI; x = a.next()){
    ...code...
}

Note that the iterable should have a next method and some kind of way to return an EOI (end of iterable) so that writing the javascript is easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant