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

23 lines
479 B
C#
Raw Normal View History

2026-03-20 13:31:31 +00:00
using System.Collections.Generic;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2026-03-20 13:31:31 +00:00
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();
}
}