Added Parser
- can parse a basic token list to an AST
This commit is contained in:
parent
ea26acce4a
commit
b3fe78fffb
19 changed files with 451 additions and 88 deletions
15
Compiler/Parser/Nodes/Node.cs
Normal file
15
Compiler/Parser/Nodes/Node.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Compiler.Parser.Nodes
|
||||
{
|
||||
public abstract class Node
|
||||
{
|
||||
public abstract NodeType NodeType { get; set; }
|
||||
public List<Node> Children { get; set; }
|
||||
|
||||
protected Node()
|
||||
{
|
||||
Children = new List<Node>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue