mirror of
https://github.com/RoBaertschi/tt.git
synced 2025-04-18 23:13:29 +00:00
19 lines
300 B
Go
19 lines
300 B
Go
package parser
|
|
|
|
import (
|
|
"robaertschi.xyz/robaertschi/tt/lexer"
|
|
"robaertschi.xyz/robaertschi/tt/token"
|
|
)
|
|
|
|
type ErrorCallback func(token.Token, string, ...any)
|
|
|
|
type Parser struct {
|
|
lexer lexer.Lexer
|
|
|
|
curToken token.Token
|
|
peekToken token.Token
|
|
|
|
errors int
|
|
errorCallback ErrorCallback
|
|
}
|