Holds information about the current state of the parser

Fields

visitingRules:Bool

Whether the parsed lines describe rules or properties

visitingGlobals:Bool

Whether the parser is in the @globals section (section must not exist)

pathStack:GenericStack<String>

The current path

outputStack:GenericStack<Node>

The current output map that should be written to

lastLineType:LineType

The type of the last read line

foundRules:Bool

Whether the @rules line was found

currentLine:Int

The current line the parser is in

consecutiveRun:Bool

True if the parser runs on another theme file that should be appended to the already parsed theme file(s).