| @@ 82-89 (lines=8) @@ | ||
| 79 | * @param array $matches |
|
| 80 | * @return mixed |
|
| 81 | */ |
|
| 82 | public function null_denotation(array &$matches) { |
|
| 83 | if ($this->null_denotation === null) { |
|
| 84 | $m = $matches[0]; |
|
| 85 | throw new ParserException("Syntax Error: $m"); |
|
| 86 | } |
|
| 87 | $led = $this->null_denotation; |
|
| 88 | return $led($matches); |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * @param \Closure $led |
|
| @@ 106-113 (lines=8) @@ | ||
| 103 | * @param array $matches |
|
| 104 | * @return mixed |
|
| 105 | */ |
|
| 106 | public function left_denotation($left, array &$matches) { |
|
| 107 | if ($this->left_denotation === null) { |
|
| 108 | $m = $matches[0]; |
|
| 109 | throw new ParserException("Syntax Error: $m"); |
|
| 110 | } |
|
| 111 | $led = $this->left_denotation; |
|
| 112 | return $led($left, $matches); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | ||