Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer stores the current state of the lexer
type TokenType ¶
type TokenType string
const ( TokenIdent TokenType = "IDENTIFIER" TokenIntLiteral TokenType = "INTEGER" TokenFloatLiteral TokenType = "FLOAT" TokenCharLiteral TokenType = "CHAR" TokenLParen TokenType = "(" TokenRParen TokenType = ")" TokenLBrace TokenType = "{" TokenRBrace TokenType = "}" TokenSemicolon TokenType = ";" TokenEqual TokenType = "=" TokenDash TokenType = "-" TokenPlus TokenType = "+" TokenStar TokenType = "*" TokenSlash TokenType = "/" TokenPlusEqual TokenType = "+=" TokenMinusEqual TokenType = "-=" TokenTimesEqual TokenType = "*=" TokenDivideEqual TokenType = "/=" TokenIntKeyword TokenType = "int" TokenFloatKeyword TokenType = "float" TokenCharKeyword TokenType = "char" TokenReturn TokenType = "return" TokenConst TokenType = "const" TokenEndOfFile TokenType = "EOF" TokenIllegal TokenType = "ILLEGAL" )
Click to show internal directories.
Click to hide internal directories.