Add type parsing stub

This commit is contained in:
Sasha Koshka 2024-02-06 16:31:53 -05:00
parent f4e5e1ea3d
commit 76c129f91c
1 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,9 @@
package parser
import "git.tebibyte.media/sashakoshka/fspl/lexer"
import "git.tebibyte.media/sashakoshka/fspl/entity"
var descriptionType = "Type"
var startTokensType = []lexer.TokenKind {
lexer.Ident,
lexer.TypeIdent,
@ -9,3 +11,7 @@ var startTokensType = []lexer.TokenKind {
lexer.Int,
lexer.LParen,
}
func (this *Parser) parseType () (entity.Type, error) {
// TODO
}