News for hackers. Stuff that matters.
Re:A CSS-Inspired Syntax for Flowcharts by tonerow on Monday August 29, 2022 @12:07PM (#32639863)
It definitely seems like your use-case is more complex than just rendering the diagrams. I think that is very cool. I'd love to see the video if you want to share it (my email is on my hn profile)
Re:A CSS-Inspired Syntax for Flowcharts by catapart on Monday August 29, 2022 @12:37PM (#32640268)
Oh for sure! I'm actually using the parsing to generate a branching dialog markup syntax, so it's keeping track of things like if you've already chosen an option, or if your character has the stats to even show an option to you.

The intention, though, was the make the variable assignment general-purpose enough for whatever node data needed to be stored. So, in my case, I'll be storing things like "x" and "y" positions, so that the nodes can be restored to their absolute position on the graph.

As for the video, please feel free to ask any questions; I'm sorry about it being kind of slow and incomplete. This was recorded to showcase how the tokenization is dynamic: https://streamja.com/JKPkJ