Skip to content

Commit

Permalink
Update parser.go
Browse files Browse the repository at this point in the history
  • Loading branch information
simplyYan authored Sep 1, 2024
1 parent 8746b7c commit 36071e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/parser/parser.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// src/parser.go
package parser

import (
Expand All @@ -20,16 +19,14 @@ const (
SLASH
LPAREN
RPAREN
// Adicione mais tokens conforme necessário

)

// Token representa um token com seu tipo e valor literal
type Token struct {
Type TokenType
Literal string
}

// Tokenize converte uma string de código fonte em uma lista de tokens
func Tokenize(input string) []Token {
var tokens []Token
runes := []rune(input)
Expand Down

0 comments on commit 36071e7

Please sign in to comment.