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
VAR a = "foo"
VAR b = "bar"
CONST c = 42
CONST d = "Number 42"
-> first_knot
== first_knot ==
In the knot a = {a}
In the knot b = {b}
-> second_knot
== second_knot ==
Then we change them :
~ a = "baz"
~ b = "bazbar"
Now a = {a}
and b = {b}
->DONE
Convert to lua using narrator 1.2 produces :
return {variables={},lists={},inclusions={},constants={d="Number 42",c=42},version={tree=1,engine=1},tree={first_knot={={"In the knovt a = #a#","In the knot b = #b#",{divert="second_knot"},""}},second_knot={={"Then we change them :",{value=""baz"",var="a"},{value=""bazbar"",var="b"},"Now a = #a#","and b = #b#",{divert="DONE"}}},={={{value=""foo"",var="a"},{value=""bar"",var="b"},{divert="first_knot"}}}}}
We see at the beginnig of the output :
As expected : constants={d="Number 42",c=42}
Not expected : variables={}
We only see variables a and b being outputted as variable definitions within the second knot, en their value is set the second time. They are present at the end of the output, but not at a place we would expect them.
Greetings, and thanks for writing narrator!
Wyzoom
The text was updated successfully, but these errors were encountered:
Input ink file:
VAR a = "foo"
VAR b = "bar"
CONST c = 42
CONST d = "Number 42"
-> first_knot
== first_knot ==
In the knot a = {a}
In the knot b = {b}
-> second_knot
== second_knot ==
Then we change them :
~ a = "baz"
~ b = "bazbar"
Now a = {a}
and b = {b}
->DONE
Convert to lua using narrator 1.2 produces :
return {variables={},lists={},inclusions={},constants={d="Number 42",c=42},version={tree=1,engine=1},tree={first_knot={={"In the knovt a = #a#","In the knot b = #b#",{divert="second_knot"},""}},second_knot={={"Then we change them :",{value=""baz"",var="a"},{value=""bazbar"",var="b"},"Now a = #a#","and b = #b#",{divert="DONE"}}},={={{value=""foo"",var="a"},{value=""bar"",var="b"},{divert="first_knot"}}}}}
We see at the beginnig of the output :
As expected : constants={d="Number 42",c=42}
Not expected : variables={}
We only see variables a and b being outputted as variable definitions within the second knot, en their value is set the second time. They are present at the end of the output, but not at a place we would expect them.
Greetings, and thanks for writing narrator!
Wyzoom
The text was updated successfully, but these errors were encountered: