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
|
|
|
|
StringVarnameToken
|
|
|
|
NumStringToken
|
|
|
|
InlineHTMLToken
|
|
|
|
EchoToken
|
|
|
|
WhileToken
|
|
|
|
EndwhileToken
|
|
|
|
ForInitSemicolonToken
|
|
|
|
ForCondSemicolonToken
|
|
|
|
EndforToken
|
|
|
|
EndforeachToken
|
|
|
|
EnddeclareToken
|
|
|
|
AsToken
|
|
|
|
EndswitchToken
|
|
|
|
GotoToken
|
|
|
|
FunctionToken
|
|
|
|
ConstToken
|
|
|
|
ReturnToken
|
|
|
|
TryToken
|
|
|
|
FinallyToken
|
|
|
|
ThrowToken
|
|
|
|
InsteadofToken
|
|
|
|
GlobalToken
|
|
|
|
VarToken
|
|
|
|
UnsetToken
|
|
|
|
ClassToken
|
|
|
|
TraitToken
|
|
|
|
InterfaceToken
|
|
|
|
ExtendsToken
|
|
|
|
ImplementsToken
|
|
|
|
DoubleArrowToken
|
|
|
|
CallableToken
|
|
|
|
CurlyOpenToken
|
|
|
|
PaamayimNekudotayimToken
|
2018-07-29 08:44:38 +00:00
|
|
|
UseLeadingNsSeparatorToken
|
2018-07-02 17:48:55 +00:00
|
|
|
NsSeparatorToken
|
|
|
|
EllipsisToken
|
|
|
|
LogicalOrToken
|
|
|
|
LogicalXorToken
|
|
|
|
LogicalAndToken
|
|
|
|
InstanceofToken
|
|
|
|
EndifToken
|
|
|
|
AbstractToken
|
|
|
|
FinalToken
|
|
|
|
PrivateToken
|
|
|
|
ProtectedToken
|
|
|
|
PublicToken
|
|
|
|
IncToken
|
|
|
|
DecToken
|
|
|
|
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 ':'
|
|
|
|
OpenCurlyBracesToken // '{'
|
|
|
|
CloseCurlyBracesToken // '}'
|
|
|
|
SemiColonToken // ';'
|
|
|
|
ColonToken // ':'
|
|
|
|
OpenParenthesisToken // '('
|
|
|
|
CloseParenthesisToken // ')'
|
|
|
|
OpenSquareBracket // '['
|
|
|
|
CloseSquareBracket // ']'
|
|
|
|
QuestionMarkToken // '?'
|
|
|
|
AmpersandToken // '&'
|
|
|
|
MinusToken // '-'
|
|
|
|
PlusToken // '+'
|
|
|
|
CommaToken // ','
|
|
|
|
VerticalBarToken // '|'
|
|
|
|
EqualToken // '='
|
|
|
|
CaretToken // '^'
|
|
|
|
AsteriskToken // '*'
|
|
|
|
SlashToken // '/'
|
|
|
|
PercentToken // '%'
|
|
|
|
LessToken // '<'
|
|
|
|
GreaterToken // '>'
|
|
|
|
DotToken // '.'
|
|
|
|
)
|