Overview

Namespaces

  • Pharborist
    • Constants
    • ControlStructures
    • Exceptions
    • Functions
    • Generators
    • Namespaces
    • Objects
    • Operators
    • Types
    • Variables

Classes

  • ArrayLookupNode
  • BacktickNode
  • BlankStatementNode
  • CommaListNode
  • CommentNode
  • DocCommentNode
  • EchoStatementNode
  • EchoTagStatementNode
  • ExpressionStatementNode
  • Filter
  • Formatter
  • FormatterFactory
  • LineCommentBlockNode
  • Node
  • NodeCollection
  • OperatorFactory
  • ParenthesisNode
  • ParentNode
  • Parser
  • PartialCommentNode
  • PartialNode
  • RootNode
  • SourceDiscovery
  • SourcePosition
  • SplatNode
  • StatementBlockNode
  • StatementNode
  • TemplateNode
  • Token
  • TokenIterator
  • Tokenizer
  • TokenNode
  • UnsetStatementNode
  • VisitorBase
  • WhitespaceNode

Interfaces

  • ExpressionNode
  • NodeInterface
  • ParentNodeInterface
  • ParserException
  • VisitorInterface

Traits

  • DocCommentTrait
  • ParenTrait
  • UncommentTrait
  • Overview
  • Namespace
  • Class

Namespace Pharborist

Namespaces summary
Pharborist\Constants
Pharborist\ControlStructures
Pharborist\Exceptions
Pharborist\Functions
Pharborist\Generators
Pharborist\Namespaces
Pharborist\Objects
Pharborist\Operators
Pharborist\Types
Pharborist\Variables
Classes summary
ArrayLookupNode An array lookup.
BacktickNode Backtick expression, e.g. `ls`.
BlankStatementNode An empty statement.
CommaListNode

Any comma-separated set of nodes. This includes class member lists, function call arguments, array elements, etc.

CommentNode A comment.
DocCommentNode A doc comment.
EchoStatementNode An echo statement.
EchoTagStatementNode A template echo tag statement.
ExpressionStatementNode An expression statement.
Filter Factory for creating common callback filters.
Formatter Visitor
FormatterFactory Formatter factory.
LineCommentBlockNode

A block of line comments, e.g.:

// This is a haiku.
// Seriously, it is one.
// Isn't that awesome?
Node A node in the PHP syntax tree.
NodeCollection A set of matched nodes.
OperatorFactory An Operator factory.
ParenthesisNode Any expression enclosed by parentheses, e.g. (($a && $b) || ($a && $c))
ParentNode A node that has children.
Parser Parses PHP tokens into syntax tree.
PartialCommentNode Used by the parser to hold document comment.
PartialNode Used by the parser to hold partial matches.
RootNode The root node of any Pharborist syntax tree.
SourceDiscovery
SourcePosition Position in source.
SplatNode Splat operator, e.g. a_func($a, ...$b)
StatementBlockNode A block of statements.
StatementNode Base class for any statement.
TemplateNode Container for php template (Inline HTML with echo tag statements).
Token Factory class for tokens.
TokenIterator Iterator over tokens that supports peek.
Tokenizer Convert PHP source into an array of tokens.
TokenNode A token.
UnsetStatementNode A unset statement.
VisitorBase Visitor
WhitespaceNode Whitespace.
Interfaces summary
ExpressionNode Interface for nodes that represent expressions.
NodeInterface Public API for Node.
ParentNodeInterface Public API for Node.
ParserException An exception occurred in parsing.
VisitorInterface A node tree visitor.
Traits summary
DocCommentTrait
ParenTrait
UncommentTrait

Contains the uncomment() method for line comments (they can't extend a single abstract base class because they're each based on a different node type).

Pharborist API documentation generated by ApiGen