Documentation
¶
Index ¶
- Constants
- type And
- type Boolean
- type Cap
- type CloseParen
- type Colon
- type Comma
- type CommonSlash
- type EOF
- type Equal
- type Greater
- type GreaterEqual
- type Lesser
- type LesserEqual
- type LiteralString
- type Minus
- type Mod
- type Not
- type NotEqual
- type Number
- type OpenParen
- type Or
- type Plus
- type Question
- type Star
- type Token
- type Type
- type Variable
Constants ¶
View Source
const ( PlusChar = '+' MinusChar = '-' StarChar = '*' CommonSlashChar = '/' OpenParenChar = '(' CloseParenChar = ')' CapChar = '^' ModChar = '%' CommaChar = ',' QuoteChar = '\'' DoubleQuoteChar = '"' EqualChar = '=' PunctuationChar = '!' PipeChar = '|' AndChar = '&' QuestionChar = '?' ColonChar = ':' GreaterChar = '>' LesserChar = '<' )
Token character
View Source
const ( PlusType = 1 + iota MinusType StarType CommonSlashType NumberType OpenParenType CloseParenType VariableType CapType ModType CommaType StringType EqualType NotEqualType GreaterType GreaterEqualType LesserType LesserEqualType OrType AndType NotType BooleanType QuestionType ColonType EOFType )
Type of tokens
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseParen ¶
type CloseParen struct{}
CloseParen symbol ")"
func (CloseParen) String ¶
func (CloseParen) String() string
type CommonSlash ¶
type CommonSlash struct{}
CommonSlash symbol "/"
func (CommonSlash) String ¶
func (CommonSlash) String() string
type GreaterEqual ¶
type GreaterEqual struct{}
GreaterEqual ! symbol
func (GreaterEqual) String ¶
func (GreaterEqual) String() string
type LesserEqual ¶
type LesserEqual struct{}
LesserEqual ! symbol
func (LesserEqual) String ¶
func (LesserEqual) String() string
type LiteralString ¶
type LiteralString struct{}
LiteralString value
func (LiteralString) String ¶
func (LiteralString) String() string
Click to show internal directories.
Click to hide internal directories.