Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOWEST int EQUALS // == LESSGREAT // > or < SUM // + PRODUCT // * PREFIX // -x or +x FUNCTION // myFunction(x) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expression ¶
type Expression interface { Node // contains filtered or unexported methods }
type ExpressionStatement ¶
type ExpressionStatement struct { Value Expression Token Token }
func (*ExpressionStatement) String ¶
func (es *ExpressionStatement) String() string
func (*ExpressionStatement) TokenLiteral ¶
func (i *ExpressionStatement) TokenLiteral() string
type Identifier ¶
Expressions
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (i *Identifier) TokenLiteral() string
type IntegerExpression ¶
func (*IntegerExpression) String ¶
func (i *IntegerExpression) String() string
func (*IntegerExpression) TokenLiteral ¶
func (i *IntegerExpression) TokenLiteral() string
type SetStatment ¶
type SetStatment struct { Value Expression Name *Identifier Token Token }
Statement
func (*SetStatment) String ¶
func (ss *SetStatment) String() string
func (*SetStatment) TokenLiteral ¶
func (ss *SetStatment) TokenLiteral() string
type TokenType ¶
type TokenType int
const ( // general language things LEFT_BRACE TokenType = iota RIGHT_BRACE PERCENT IDENT INT PIPE TILDA LEFT_BRACKET RIGHT_BRACKET ASSIGN PLUS MINUS SLASH ASTERIKS COMMA BANG COLLECTION SEMI_COLON START_COLLECTION END_COLLECTION SINGLE_QUOTE QUOTE DOT LT GT EQ NOT_EQ // jinja opertations START_EXPRESSION START_STATEMENT START_COMMENT END_EXPRESSION END_STATEMENT END_COMMENT // keywords SET END_SET FOR END_FOR IN BLOCK END_BLOCK EXTENDS IS MACRO END_MACRO IF ELIF SCOPED CALL END_CALL FILTER END_FILTER NOT // other stuff ILLEGAL WS // special characters TEXT EOF )
func LookupIdent ¶
Click to show internal directories.
Click to hide internal directories.