using System.Collections.Generic; namespace Rokojori; public abstract class ASTParserPhase:ParserPhase { public ASTParser parserProcessor; public ASTParserPhase( ASTParser parserProcessor ) { this.parserProcessor = parserProcessor; } public abstract ASTNode GetParsingRoot( Parser parser ); public override void Process( Parser parser ) { parserProcessor.root = GetParsingRoot( parser ); parserProcessor.Process(); } }