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

implement else macro #26

Open
amoibos opened this issue Jan 11, 2015 · 2 comments
Open

implement else macro #26

amoibos opened this issue Jan 11, 2015 · 2 comments

Comments

@amoibos
Copy link

amoibos commented Jan 11, 2015

This would be nice and shouldn't be that hard.

@haroldo-ok
Copy link
Owner

I agree, though it would also require the implementation of an 'else' instruction on the SAM interpreter.

@amoibos
Copy link
Author

amoibos commented Oct 4, 2015

My suggestion add a | symbol for the else branch within block. The start depending now of the expression. If it true skip all commands between | and ] otherwise ignoring all between [ and |. On my branch i already added the changes for the parser.

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

2 participants