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

Board/program directives #5

Open
m-ender opened this issue Dec 1, 2014 · 1 comment
Open

Board/program directives #5

m-ender opened this issue Dec 1, 2014 · 1 comment

Comments

@m-ender
Copy link
Contributor

m-ender commented Dec 1, 2014

es1024's implementation comes with a few options that seem useful, most notably

  • cylindrical boards
  • printing integers instead of character codes

We can probably think of a few others...

I'm thinking, it doesn't really make sense for these things to be parameters of the interpreter. They should be tied to the code. A cylindrical board usually won't make sense if marbles are pushed off the edges instead and vice versa. So I'd say these belong into the code, and we can probably add them with directives similar to #include. And while we're at it, I was wondering if we couldn't actually make these per-board directives (and each board defaults to the main board's options).

@mrskin
Copy link

mrskin commented Jul 11, 2015

in perl, behavior like this is done with command line parameters, and those parameters are often present in the shebang line.

#!/usr/bin/env marbelous -p -c

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

No branches or pull requests

1 participant