Skip to content

Expressions unification#177

Open
DaanVanVugt wants to merge 3 commits into
iterorganization:developfrom
DaanVanVugt:expressions-unification
Open

Expressions unification#177
DaanVanVugt wants to merge 3 commits into
iterorganization:developfrom
DaanVanVugt:expressions-unification

Conversation

@DaanVanVugt

Copy link
Copy Markdown
Contributor

After #176

@@ -0,0 +1,135 @@
import ast

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update docs?

Comment on lines 86 to 89
# Derived waveforms are parsed as YAML block strings
elif "'" in editor_text or '"' in editor_text:
indented_text = textwrap.indent(editor_text, " ")
waveform_yaml = f"{name}: |\n{indented_text}"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this will work anymore with the new expressions.

Comment on lines +9 to +12
# Configuration schema version. Bumped to 2 when bare-string values became literal
# string constants instead of derived-waveform expressions.
CURRENT_SCHEMA_VERSION = 2

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to have YAML schema versions, should we use semantic versioning instead?

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.

2 participants