2018-07-02 17:48:55 +00:00
|
|
|
package meta
|
|
|
|
|
|
|
|
// TokenName is used to specify a comment position
|
|
|
|
type TokenName int
|
|
|
|
|
|
|
|
//go:generate stringer -type=TokenName -output ./tokenName_string.go
|
|
|
|
const (
|
2018-10-25 09:37:31 +00:00
|
|
|
NodeStart TokenName = iota
|
2018-07-02 17:48:55 +00:00
|
|
|
NodeEnd
|
|
|
|
IncludeToken
|
|
|
|
IncludeOnceToken
|
|
|
|
ExitToken
|
|
|
|
IfToken
|
|
|
|
StringVarnameToken
|
|
|
|
NumStringToken
|
|
|
|
InlineHTMLToken
|
|
|
|
EchoToken
|
|
|
|
DoToken
|
|
|
|
WhileToken
|
|
|
|
EndwhileToken
|
|
|
|
ForInitSemicolonToken
|
|
|
|
ForCondSemicolonToken
|
|
|
|
ForToken
|
|
|
|
EndforToken
|
|
|
|
ForeachToken
|
|
|
|
EndforeachToken
|
|
|
|
DeclareToken
|
|
|
|
EnddeclareToken
|
|
|
|
AsToken
|
|
|
|
SwitchToken
|
|
|
|
EndswitchToken
|
|
|
|
CaseToken
|
|
|
|
DefaultToken
|
|
|
|
BreakToken
|
|
|
|
ContinueToken
|
|
|
|
GotoToken
|
|
|
|
FunctionToken
|
|
|
|
ConstToken
|
|
|
|
ReturnToken
|
|
|
|
TryToken
|
|
|
|
CatchToken
|
|
|
|
FinallyToken
|
|
|
|
ThrowToken
|
|
|
|
InsteadofToken
|
|
|
|
GlobalToken
|
|
|
|
VarToken
|
|
|
|
UnsetToken
|
|
|
|
IssetToken
|
|
|
|
ClassToken
|
|
|
|
TraitToken
|
|
|
|
InterfaceToken
|
|
|
|
ExtendsToken
|
|
|
|
ImplementsToken
|
|
|
|
DoubleArrowToken
|
|
|
|
ListToken
|
|
|
|
CallableToken
|
|
|
|
CurlyOpenToken
|
|
|
|
PaamayimNekudotayimToken
|
2018-07-29 08:44:38 +00:00
|
|
|
UseLeadingNsSeparatorToken
|
2018-07-02 17:48:55 +00:00
|
|
|
NsSeparatorToken
|
|
|
|
EllipsisToken
|
|
|
|
EvalToken
|
|
|
|
RequireToken
|
|
|
|
RequireOnceToken
|
|
|
|
LogicalOrToken
|
|
|
|
LogicalXorToken
|
|
|
|
LogicalAndToken
|
|
|
|
InstanceofToken
|
2018-07-29 08:44:38 +00:00
|
|
|
NewAnchor
|
2018-07-02 17:48:55 +00:00
|
|
|
ElseifToken
|
|
|
|
ElseToken
|
|
|
|
EndifToken
|
|
|
|
PrintToken
|
|
|
|
YieldToken
|
|
|
|
AbstractToken
|
|
|
|
FinalToken
|
|
|
|
PrivateToken
|
|
|
|
ProtectedToken
|
|
|
|
PublicToken
|
|
|
|
IncToken
|
|
|
|
DecToken
|
|
|
|
YieldFromToken
|
|
|
|
ObjectOperatorToken
|
|
|
|
CoalesceToken
|
|
|
|
SpaceshipToken
|
|
|
|
PlusEqualToken
|
|
|
|
MinusEqualToken
|
|
|
|
MulEqualToken
|
|
|
|
PowEqualToken
|
|
|
|
DivEqualToken
|
|
|
|
ConcatEqualToken
|
|
|
|
ModEqualToken
|
|
|
|
AndEqualToken
|
|
|
|
OrEqualToken
|
|
|
|
XorEqualToken
|
|
|
|
SlEqualToken
|
|
|
|
SrEqualToken
|
|
|
|
BooleanOrToken
|
|
|
|
BooleanAndToken
|
|
|
|
PowToken
|
|
|
|
SlToken
|
|
|
|
SrToken
|
|
|
|
IsIdenticalToken
|
|
|
|
IsNotIdenticalToken
|
|
|
|
IsEqualToken
|
|
|
|
IsNotEqualToken
|
|
|
|
IsSmallerOrEqualToken
|
|
|
|
IsGreaterOrEqualToken
|
|
|
|
HaltCompilerToken
|
|
|
|
CaseSeparatorToken // ';' or ':'
|
|
|
|
BackquoteToken // '`'
|
|
|
|
OpenCurlyBracesToken // '{'
|
|
|
|
CloseCurlyBracesToken // '}'
|
|
|
|
SemiColonToken // ';'
|
|
|
|
ColonToken // ':'
|
|
|
|
OpenParenthesisToken // '('
|
|
|
|
CloseParenthesisToken // ')'
|
|
|
|
OpenSquareBracket // '['
|
|
|
|
CloseSquareBracket // ']'
|
|
|
|
QuestionMarkToken // '?'
|
|
|
|
AmpersandToken // '&'
|
|
|
|
MinusToken // '-'
|
|
|
|
PlusToken // '+'
|
|
|
|
AtToken // '@'
|
|
|
|
CommaToken // ','
|
|
|
|
VerticalBarToken // '|'
|
|
|
|
EqualToken // '='
|
|
|
|
CaretToken // '^'
|
|
|
|
AsteriskToken // '*'
|
|
|
|
SlashToken // '/'
|
|
|
|
PercentToken // '%'
|
|
|
|
LessToken // '<'
|
|
|
|
GreaterToken // '>'
|
|
|
|
DotToken // '.'
|
|
|
|
)
|