GetDKAN/pdlt

View on GitHub
src/CompilerInterface.php

Summary

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

namespace PDLT;

/**
 * AST compiler.
 */
interface CompilerInterface {

  /**
   * Compile the given AST.
   *
   * @param array $syntax
   *   Abstract Syntax Tree.
   *
   * @return string
   *   Compiled string.
   */
  public function compile(array $syntax): string;

}