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

fix: handle context accesses following calls #340

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

woodruffw
Copy link
Owner

WIP; these grammar changes mean the syntax tree itself is different, so I need to update the walk as well.

Fixes #339.

Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw added the bugfix Fixes a known bug label Dec 20, 2024
@woodruffw woodruffw self-assigned this Dec 20, 2024
@woodruffw
Copy link
Owner Author

Some notes for myself:

  • The Context node is now insufficiently expressive: an expression like fromJson(steps.runs.outputs.data).workflow_runs[0].id should be:
Context
  Call { fromJson args: Context { lit:steps, lit:runs, lit:outputs, lit:data } }
  lit:workflow_runs
  Index { 0 }
  lit:id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: couldn't parse expression: fromJson(...)
1 participant