package dev.peerat.parser.tree; import dev.peerat.parser.state.StateTree; public abstract class SyntaxTree{ protected SyntaxTreeRegistery registery; protected StateTree current; private boolean init; public SyntaxTree(SyntaxTreeRegistery registery){ this.registery = registery; } public StateTree getNode(){ return this.current; } public void checkInit(){ if(!init){ init(); this.init = true; } } public abstract void init(); }