Documentation ¶
Index ¶
Constants ¶
View Source
const ( EOF = "EOF" INVALID = "INVALID" // Keywords ALGORITHM = "ALGORITMO" BLOCKBEGIN = "INÍCIO" BLOCKEND = "FIM" VARSBEGIN = "VARIÁVEIS" VARSEND = "FIM-VARIÁVEIS" // Delimiters COMMA = "," COLON = ":" SEMICOLON = ";" LPAREN = "(" RPAREN = ")" ATTR = ":=" // Literals INT = "INTEIRO" STRING = "LITERAL" // Identifiers IDENT = "IDENT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer keeps the infos to do the lexical analysis.
func (*Lexer) GetNextTokenIf ¶
GetNextTokenIf get the next token if match a specific token type.
func (*Lexer) GetNextsTokensIf ¶
GetNextsTokensIf get the nexts tokens if both match a specifics tokens types.
Click to show internal directories.
Click to hide internal directories.