Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LongestDirective ¶ added in v0.0.2
func LongestDirective() int
Types ¶
type TokenType ¶
type TokenType int
const ( // Special types ILLEGAL TokenType = iota // An illegal token EOF // The end of the file IDENT // foo, bar // Literals HTML // HTML code INT // Integer FLOAT // Float STR // String // Operators ADD // + SUB // - MUL // * DIV // / MOD // % INC // ++ DEC // -- NOT // ! ASSIGN // = // Comparison operators EQ // == NOT_EQ // != LTHAN // < GTHAN // > LTHAN_EQ // <= GTHAN_EQ // >= // Delimiters LBRACES // {{ RBRACES // }} LPAREN // ( RPAREN // ) LBRACKET // [ RBRACKET // ] QUESTION // ? COLON // : COMMA // , DOT // . SEMI // ; // Keywords TRUE FALSE NIL IN // Directives IF ELSE ELSEIF END FOR USE EACH BREAK INSERT RESERVE CONTINUE )
func LookupDirective ¶ added in v0.0.2
func LookupIdent ¶
Click to show internal directories.
Click to hide internal directories.