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 - It's create tokens for source that it's passed as string . IMPORTANT!! no create and lexer , use the function NewLexer
type TokenType ¶
type TokenType string
TokenType type of token
const ( ALL TokenType = "ALL" AS TokenType = "AS" BASE TokenType = "BASE" BEFORE TokenType = "BEFORE" BODY TokenType = "BODY" COMMA TokenType = "COMMA" COLON TokenType = "COLON" DELETE TokenType = "DELETE" DOT TokenType = "DOT" EOF TokenType = "EOF" ERRORSHANDLERS TokenType = "ERRORSHANDLERS" FROM TokenType = "FROM" GET TokenType = "GET" HANDLER TokenType = "HANDLER" HEAD TokenType = "HEAD" HEADERS TokenType = "HEADERS" IDENT TokenType = "IDENT" IMPORT TokenType = "IMPORT" ILLEGAL TokenType = "ILLEGAL" LBRACE TokenType = "LBRACE" LPAREN TokenType = "LPAREN" OPTIONS TokenType = "OPTIONS" PARAMS TokenType = "PARAMS" PATCH TokenType = "PATCH" POST TokenType = "POST" PUT TokenType = "PUT" QUOTES TokenType = "QUOTES" RBRACE TokenType = "RBRACE" RPAREN TokenType = "RPAREN" SERVICE TokenType = "SERVICE" SERVICEOPTIONS TokenType = "SERVICEOPTIONS" SEMICOLON TokenType = "SEMICOLON" )
Enum for type of tokens
Click to show internal directories.
Click to hide internal directories.