Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct {
Line, Col uint
}
Position represents the line and column number where a token starts in a source file.
type TokenType ¶
type TokenType int
const ( Illegal TokenType = iota + 1 EOF Comment EOL // Identifiers & literals Identifier Integer Float String // Operators Assign Plus Dash Bang Asterisk Slash Modulo Dot PlusAssign MinusAssign TimesAssign SlashAssign ModAssign LessThan GreaterThan LessThanEq GreaterThanEq Equal NotEqual BitwiseAnd BitwiseOr BitwiseAndNot ShiftLeft ShiftRight // Delimiters Comma Semicolon Colon Carrot // Groups and blocks LParen RParen LBrace RBrace LSquare RSquare LAnd LOr Function Let Const True False If Elif Else Return Nil For While Loop Continue Break Try Catch Throw Class New Pass Import As Delete Use Native Do In Interface Implements )
All tokens in Nitrogen
func LookupIdent ¶
Click to show internal directories.
Click to hide internal directories.