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
19
Compiler/Lexer/TokenType.cs
Normal file
19
Compiler/Lexer/TokenType.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace Compiler.Lexer
|
||||
{
|
||||
public enum TokenType
|
||||
{
|
||||
OpenParenthesisToken,
|
||||
CloseParenthesisToken,
|
||||
IntToken,
|
||||
OpenBraceToken,
|
||||
CloseBraceToken,
|
||||
ReturnToken,
|
||||
SemicolonToken,
|
||||
IdentifierToken,
|
||||
IntegerLiteralToken,
|
||||
|
||||
//special Token to represent invalid matches
|
||||
InvalidToken
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue