Parser class
Lightweight parser that converts SGF into a node tree.
;starts a node,(and)denote variation start/end.- Property identifiers are normalized by extracting uppercase letters only.
- Property values are the text inside
[...]with SGF escapes unescaped. - Unexpected characters result in a StateError.
Constructors
- Parser()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String text, {IdGenerator? getId, NodeCallback? onNodeCreated}) → RecursiveNode -
Parses
textand returns the root RecursiveNode. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited