You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great library, thanks so much for your work! I really appreciate e.g. how you've translated exceptions in a way that lets you easily access the line and column number of a Starlark error 👌.
Does Starlark provide a way to access the syntax tree of an expression? Is this something we could add to python-starlark-go? (If Starlark exposes the tree I'm happy to take a shot at it, but my go skills are very poor).
So, for example, in the Starlark code:
a = 1
b = 2
c = a * 2
result = b + c
we could access the fact that result depends on b and c via the operator +, and in turn c depends on a (and a literal) via *.
The text was updated successfully, but these errors were encountered:
I think this might be possible to some degree, but we aren't using any part of the API that would give us something like this at the moment. I will keep this in mind as I am looking at the starlark-go API docs to implement some other things.
Ok, thanks! To clarify, do you know if there is an API for this in starlark-go? (Obviously they have the machinery for this internally, my question is if there's a reasonably "public-facing" API e.g. with docs).
Great library, thanks so much for your work! I really appreciate e.g. how you've translated exceptions in a way that lets you easily access the line and column number of a Starlark error 👌.
Does Starlark provide a way to access the syntax tree of an expression? Is this something we could add to
python-starlark-go
? (If Starlark exposes the tree I'm happy to take a shot at it, but my go skills are very poor).So, for example, in the Starlark code:
we could access the fact that
result
depends onb
andc
via the operator+
, and in turnc
depends ona
(and a literal) via*
.The text was updated successfully, but these errors were encountered: