Package io.deephaven.lang.api
Class ParseState
- java.lang.Object
-
- io.deephaven.lang.api.ParseState
-
public class ParseState extends java.lang.ObjectRepresents the state of a "currently being parsed node". For now, we're going to use this to have our own hierarchy of ast nodes outside of the generated jjt state machine, and in the future, the hope is that this will also allow us to perform resumable / incremental document parsing, by simply invalidating any changed ParseState, and then restarting the parser in the correct state, over the changed set of text.
-
-
Constructor Summary
Constructors Constructor Description ParseState(Node src)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(ParseState child)ParseStatefinish()NodegetNext()ParseStategetParent()NodegetSrc()
-
-
-
Constructor Detail
-
ParseState
public ParseState(Node src)
-
-
Method Detail
-
getNext
public Node getNext()
-
addChild
public void addChild(ParseState child)
-
finish
public ParseState finish()
-
getParent
public ParseState getParent()
-
getSrc
public Node getSrc()
-
-