Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenType ¶
type TokenType int
TokenType describes the type of token
const ( // Special Tokens Illegal TokenType = iota EOF // Literal types Ident // main Int // 42 Float // 42.3 String // 42 // grouping, calls, indexing, fields and func args LParen // '(' RParen // ')' LBrack // '[' RBrack // ']' Dot // '.' Comma // ',' Add // + Sub // - Mul // * Quo // / Rem // % Equal // == NotEqual // != LTE // <= GTE // >= LT // < GT // > Not // ! )
func (TokenType) IsOperator ¶
Click to show internal directories.
Click to hide internal directories.