twine_parser library

A Dart library for parsing and evaluating Twine stories.

Supports the Harlowe story format with expression evaluation, variable management, and macro processing.

Classes

Choice
Represents a choice/link in a Twine passage.
HarloweEvaluator
Evaluates Harlowe expressions and manages story variables.
Passage
Represents a single passage in a Twine story.
TwineParser
Parses and processes Twine story HTML files.

Typedefs

DebugLogger = void Function(String message)
Optional callback for debug logging.