GetDKAN/pdlt

View on GitHub
src/ParserInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace PDLT;

/**
 * Language string parser.
 */
interface ParserInterface {

  /**
   * Generate an Abstract Syntax Tree (AST) from the given input.
   *
   * @param string $input
   *   Input string.
   *
   * @return array
   *   Generated AST.
   */
  public function parse(string $input): array;

}