Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBlockSize = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
func NewParseErr ¶
func NewParseErr( pool *Pool, phraseType PhraseType, children []AstNode, unexpected *lexer.Token, expected lexer.TokenType) *ParseError
type Phrase ¶
type Phrase struct { Type PhraseType `json:"PhraseType"` Children []AstNode }
type PhraseType ¶
type PhraseType uint8
const ( Unknown PhraseType = iota AdditiveExpression AnonymousClassDeclaration AnonymousClassDeclarationHeader AnonymousFunctionCreationExpression AnonymousFunctionHeader AnonymousFunctionUseClause AnonymousFunctionUseVariable ArrowFunctionCreationExpression ArrowFunctionHeader ArrowFunctionUseClause ArrowFunctionUseVariable ArgumentExpressionList ArrayCreationExpression ArrayElement ArrayInitialiserList ArrayKey ArrayValue BitwiseExpression BreakStatement ByRefAssignmentExpression CaseStatement CaseStatementList CastExpression CatchClause CatchClauseList CatchNameList ClassBaseClause ClassConstantAccessExpression ClassConstDeclaration ClassConstElement ClassConstElementList ClassDeclaration ClassDeclarationBody ClassDeclarationHeader ClassInterfaceClause ClassMemberDeclarationList ClassModifiers ClassTypeDesignator CloneExpression ClosureUseList CoalesceExpression CompoundAssignmentExpression CompoundStatement TernaryExpression ConstantAccessExpression ConstDeclaration ConstElement ConstElementList ContinueStatement DeclareDirective DeclareStatement DefaultStatement DoStatement DoubleQuotedStringLiteral EchoIntrinsic ElseClause ElseIfClause ElseIfClauseList EmptyIntrinsic EncapsulatedExpression EncapsulatedVariable EncapsulatedVariableList EqualityExpression Error ErrorClassMemberDeclaration ErrorClassTypeDesignatorAtom ErrorControlExpression ErrorExpression ErrorScopedAccessExpression ErrorTraitAdaptation ErrorVariable ErrorVariableAtom EvalIntrinsic ExitIntrinsic ExponentiationExpression ExpressionList ExpressionStatement FinallyClause ForControl ForeachCollection ForeachKey ForeachStatement ForeachValue ForEndOfLoop ForExpressionGroup ForInitialiser ForStatement FullyQualifiedName FunctionCallExpression FunctionDeclaration FunctionDeclarationBody FunctionDeclarationHeader FunctionStaticDeclaration FunctionStaticInitialiser GlobalDeclaration GotoStatement HaltCompilerStatement HeredocStringLiteral Identifier IfStatement IncludeExpression IncludeOnceExpression InlineText InstanceOfExpression InstanceofTypeDesignator InterfaceBaseClause InterfaceDeclaration InterfaceDeclarationBody InterfaceDeclarationHeader InterfaceMemberDeclarationList IssetIntrinsic ListIntrinsic LogicalExpression MemberModifierList MemberName MethodCallExpression MethodDeclaration MethodDeclarationBody MethodDeclarationHeader MethodReference MultiplicativeExpression NamedLabelStatement NamespaceAliasingClause NamespaceDefinition NamespaceName NamespaceUseClause NamespaceUseClauseList NamespaceUseDeclaration NamespaceUseGroupClause NamespaceUseGroupClauseList NullStatement ObjectCreationExpression ParameterDeclaration ParameterDeclarationList PostfixDecrementExpression PostfixIncrementExpression PrefixDecrementExpression PrefixIncrementExpression PrintIntrinsic PropertyAccessExpression PropertyDeclaration PropertyElement PropertyElementList PropertyInitialiser QualifiedName QualifiedNameList RelationalExpression RelativeQualifiedName RelativeScope RequireExpression RequireOnceExpression ReturnStatement ReturnType ScopedCallExpression ScopedMemberName ScopedPropertyAccessExpression ShellCommandExpression ShiftExpression SimpleAssignmentExpression SimpleVariable StatementList StaticVariableDeclaration StaticVariableDeclarationList SubscriptExpression SwitchStatement ThrowStatement TraitAdaptationList TraitAlias TraitDeclaration TraitDeclarationBody TraitDeclarationHeader TraitMemberDeclarationList TraitPrecedence TraitUseClause TraitUseSpecification TryStatement TypeDeclaration UnaryOpExpression UnsetIntrinsic VariableList VariableNameList VariadicUnpacking WhileStatement YieldExpression YieldFromExpression DocumentComment DocumentCommentDescription DocumentCommentAuthor DocumentCommentEmail DocumentCommentTagAnchorStart DocumentCommentTag DocumentCommentAuthorTag DocumentCommentDeprecatedTag DocumentCommentGlobalTag DocumentCommentMethodTag DocumentCommentParamTag DocumentCommentPropertyTag DocumentCommentReturnTag DocumentCommentThrowsTag DocumentCommentVarTag DocumentCommentTagAnchorEnd TypeUnion ParameterValue )
func (*PhraseType) MarshalJSON ¶
func (phraseType *PhraseType) MarshalJSON() ([]byte, error)
func (PhraseType) String ¶
func (i PhraseType) String() string
Click to show internal directories.
Click to hide internal directories.