Documentation ¶
Overview ¶
Package token exports the grammar's lexical tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUnaryOperator ¶
Types ¶
type Type ¶
type Type int
Type of tokens
const ( Illegal Type = iota Bool Decimal Hexadecimal Octal String Minus Plus Mul Rem Quo Inc Dec Dot LParen RParen Comma SemiColon LBrace RBrace LBrack RBrack Less Greater LessEq GreaterEq Equal NotEqual TEqual // stands for triple equal x_x NotTEqual LShift RShift RShiftZero // Right Shift with zero filling, yay JS And Or Xor Not LNot LAnd LOr Colon Assign AddAssign SubAssign MulAssign RemAssign QuoAssign LShiftAssign RShiftAssign RShiftZeroAssign AndAssign OrAssign XorAssign Ternary Ident Null Undefined Break Case Catch Continue Debugger Default Delete Do Else Finally For Function If In InstanceOf New Return Switch This Throw Try TypeOf Var Void While With EOF )
Click to show internal directories.
Click to hide internal directories.