Documentation ¶ Index ¶ type Kind func (k Kind) IsComparisonOp() bool func (k Kind) Repr() string func (k Kind) String() string type Token func Tokenize(input string) []Token func (t Token) IsBinaryOp() bool func (t Token) IsUnaryOp() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Kind ¶ type Kind int const ( Eof Kind = iota Colon Assign Lparen Rparen Nl // Operators Plus Minus Star Slash Eq Neq Lt Gt Lte Gte Bang // Literal StringLit NumLit Comment Ident // Keywords If While End True False And Or ) func (Kind) IsComparisonOp ¶ func (k Kind) IsComparisonOp() bool func (Kind) Repr ¶ func (k Kind) Repr() string func (Kind) String ¶ func (k Kind) String() string type Token ¶ type Token struct { Kind Kind Lit string } func Tokenize ¶ func Tokenize(input string) []Token func (Token) IsBinaryOp ¶ func (t Token) IsBinaryOp() bool func (Token) IsUnaryOp ¶ func (t Token) IsUnaryOp() bool Source Files ¶ View all Source files lex.go Click to show internal directories. Click to hide internal directories.