| @@ 604-615 (lines=12) @@ | ||
| 601 | * |
|
| 602 | * @return string |
|
| 603 | */ |
|
| 604 | public function AliasIdentificationVariable() { |
|
| 605 | $this->match(Lexer::T_IDENTIFIER); |
|
| 606 | ||
| 607 | $aliasIdentVariable = $this->lexer->token['value']; |
|
| 608 | $exists = isset($this->queryComponents[$aliasIdentVariable]); |
|
| 609 | ||
| 610 | if ($exists) { |
|
| 611 | $this->semanticalError("'$aliasIdentVariable' is already defined.", $this->lexer->token); |
|
| 612 | } |
|
| 613 | ||
| 614 | return $aliasIdentVariable; |
|
| 615 | } |
|
| 616 | ||
| 617 | /** |
|
| 618 | * AbstractSchemaName ::= identifier |
|
| @@ 647-658 (lines=12) @@ | ||
| 644 | * |
|
| 645 | * @return string |
|
| 646 | */ |
|
| 647 | public function AliasResultVariable() { |
|
| 648 | $this->match(Lexer::T_IDENTIFIER); |
|
| 649 | ||
| 650 | $resultVariable = $this->lexer->token['value']; |
|
| 651 | $exists = isset($this->queryComponents[$resultVariable]); |
|
| 652 | ||
| 653 | if ($exists) { |
|
| 654 | $this->semanticalError("'$resultVariable' is already defined.", $this->lexer->token); |
|
| 655 | } |
|
| 656 | ||
| 657 | return $resultVariable; |
|
| 658 | } |
|
| 659 | ||
| 660 | /** |
|
| 661 | * ResultVariable ::= identifier |
|