Implements parsing function declarations

This commit is contained in:
2019-05-31 15:00:14 +02:00
parent 6fad5a0a7d
commit c407ba2f50
8 changed files with 191 additions and 15 deletions

View File

@@ -56,6 +56,8 @@ IToken* Lexer::LexNext(char c){
return new SimpleToken(TokenKind::OpenParenthesis, this -> Position - 1, 1);
case ')':
return new SimpleToken(TokenKind::CloseParenthesis, this -> Position - 1, 1);
case ',':
return new SimpleToken(TokenKind::CommaToken, this -> Position - 1, 1);
case '=':
if (Lexer::Peek() == '='){
Lexer::Next();