Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Parser.php

function Parser::parseExpression

Parses an expression

Return value

Node\Node|null

File

vendor/mck89/peast/lib/Peast/Syntax/Parser.php, line 3033

Class

Parser
Parser class

Namespace

Peast\Syntax

Code

protected function parseExpression() {
    $list = $this->charSeparatedListOf("parseAssignmentExpression");
    if (!$list) {
        return null;
    }
    elseif (count($list) === 1) {
        return $list[0];
    }
    else {
        $node = $this->createNode("SequenceExpression", $list);
        $node->setExpressions($list);
        return $this->completeNode($node);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal