parse statements

This commit is contained in:
unintendedfraud
2024-04-25 16:37:38 +02:00
parent 9a8e3690fe
commit 0d25e2d9a2
3 changed files with 220 additions and 3 deletions
+8
View File
@@ -44,3 +44,11 @@ type Identifier struct {
func (i *Identifier) expressionNode() {}
func (i *Identifier) TokenLiteral() string { return i.Token.Literal }
type ReturnStatement struct {
Token token.Token
Value Expression
}
func (rs *ReturnStatement) statementNode() {}
func (rs *ReturnStatement) TokenLiteral() string { return rs.Token.Literal }