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

More flexible expression syntax #31

Open
Starstrider42 opened this issue Feb 20, 2017 · 0 comments
Open

More flexible expression syntax #31

Starstrider42 opened this issue Feb 20, 2017 · 0 comments

Comments

@Starstrider42
Copy link
Owner

Starstrider42 commented Feb 20, 2017

Currently, most orbital parameters in Custom Asteroid configs must be either floating-point literals, a Ratio expression, or a Offset expression. The latter two are both counterintuitive and inflexible; it would be more useful to replace them with syntax similar to everyday mathematical expressions.

The new syntax should allow numerical parameters to be an Expression, defined as one of the following:

  • a floating point literal
  • <planet>.<value>
  • Resonance(<planet>, <m>:<n>)
  • (Expression)
  • -Expression
  • Expression [+|-|*|/] Expression
    The syntax will not only be easier to work with, but will lend itself easily to future extensions.
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