rokojori_action_library/Runtime/Text/Parsing/Parser/ASTParserPhase.cs

22 lines
452 B
C#

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();
}
}