package
Version:
v0.0.0-...-3085ebc
Opens a new window with list of versions in this module.
Published: Nov 10, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Position is the location of a code point in the source
We could not use `Line()` as function name, because `Line` is the struct's field
Stringer method for Position
Stringer method for Token
token
const (
TOKEN_ILLEGAL TokenType = (iota - 1)
TOKEN_EOF
TOKEN_PLUS
TOKEN_MINUS
TOKEN_MULTIPLY
TOKEN_DIVIDE
TOKEN_MOD
TOKEN_POWER
TOKEN_LPAREN
TOKEN_RPAREN
TOKEN_NUMBER
TOKEN_IDENTIFIER
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.