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

22 lines
452 B
C#
Raw Normal View History

2026-03-20 13:31:31 +00:00
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();
}
}