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

Register syntax #95

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Register syntax #95

merged 5 commits into from
Jan 16, 2024

Conversation

busstoptaktik
Copy link
Owner

Improved syntax for pipelines and registers

For improved readability of long pipelines, using the
'step-separators-at-column-1' formatting, we introduce
':' as line continuation characters. They are ignored,
but potentially makes the pipeline slightly easier to
read.

Tests in token.rs and parsed_parameters.rs extended
correspondingly
Registers for the 'plain' context provider are now in MarkDown
format, for better communication to end users. Single element
resource files are still in the old format for rapid testing.

Tests for macro parameter defaults (foo=*0) and
lookups (foo=$bar) have been enhanced.
Macro definitions now use the syntax 'macro:name arg=(0)' to provide
a default value (here 0) if the argument 'arg' is not given at
instantiation time.

Named arguments can now also provide a default value using the
syntax 'macro:name arg=$foo(1)' to indicate that 'arg' should
be set to the value of 'foo', and if 'foo' is not given, to '1'.
@busstoptaktik busstoptaktik merged commit dd15a01 into main Jan 16, 2024
2 checks passed
@busstoptaktik busstoptaktik deleted the register-syntax branch January 16, 2024 21:06
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

Successfully merging this pull request may close these issues.

1 participant