Closed shaheerk94 closed 2 weeks ago
Note: Do not merge any grammar changes before Phoenix demos during the week of 9/23
Question: do we need the brackets and quotes around the variable definitions? If we're doing one declaration per line, what about something like:
burn_timeout FLOAT [135.0-2500.0][
close_lv { "TYPE": "STRING", "ENUM_NAME": "YES_NO" } <-- not sure how we might handle this one
minimum_momentum_delta FLOAT 0.1-35.0
momentum_bound FLOAT 0.0-35.0
slew_duration UNSIGNED_DECIMAL 0-3600
@END_INPUT_PARAMS
Checked for duplicates
Yes - I have checked
Alternatives considered
Yes - I have considered
Related problems
Sequences can have many input arguments and local variables. Allowing one def/line would make this a lot more readable. Also, the syntax is different for the two formats, which is also a little less readable.
Describe the feature request
Propose allowing the following:
@START_INPUT_PARAMS burn_timeout { "TYPE": "FLOAT", "RANGE": "135.0...2500.0" } close_lv { "TYPE": "STRING", "ENUM_NAME": "YES_NO" } minimum_momentum_delta { "TYPE": "FLOAT", "RANGE": "0.1...35.0" } momentum_bound { "TYPE": "FLOAT", "RANGE": "0.0...35.0" } slew_duration { "TYPE": "UNSIGNED_DECIMAL", "RANGE": "0...3600" } @END_INPUT_PARAMS
@START_LOCALS burn_timeout { "TYPE": "FLOAT"} close_lv { "TYPE": "STRING"} minimum_momentum_delta { "TYPE": "FLOAT" } momentum_bound { "TYPE": "FLOAT" } slew_duration { "TYPE": "UNSIGNED_DECIMAL" } @END_LOCALS