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
i'm working on a parser for the Harlowe language which is used in Twine text adventures. Rules are coming on fairly well, but my overall structure is lacking. Could anyone get me to the next step please?
A Twine text adventure is written in a wiki-like language (perhaps you know of a good example grammar for Wiki that you could point me at?) with extended language that represents variables etc., e.g.
"You have started (set: $status to "started") in a dark room you can [[go north|north]] or [[go south|south]]"
So, I have defined rules to match narrative"You have started", code(set: $status...) and link[[go north...
What is the simplest way to specify that narrative, code, and links can appear in any combination, zero-or-many times?
Hi,
i'm working on a parser for the Harlowe language which is used in Twine text adventures. Rules are coming on fairly well, but my overall structure is lacking. Could anyone get me to the next step please?
https://github.com/jnicho02/nearley-harlowe
The text was updated successfully, but these errors were encountered: