@@ 1944-1947 (lines=4) @@ | ||
1941 | return $this->StringPrimary(); |
|
1942 | ||
1943 | case ($lookahead === Lexer::T_TRUE): |
|
1944 | case ($lookahead === Lexer::T_FALSE): |
|
1945 | $this->match($lookahead); |
|
1946 | ||
1947 | return new AST\Literal(AST\Literal::BOOLEAN, $this->lexer->token['value']); |
|
1948 | ||
1949 | case ($lookahead === Lexer::T_INPUT_PARAMETER): |
|
1950 | switch (true) { |
|
@@ 2649-2652 (lines=4) @@ | ||
2646 | public function Literal() |
|
2647 | { |
|
2648 | switch ($this->lexer->lookahead['type']) { |
|
2649 | case Lexer::T_STRING: |
|
2650 | $this->match(Lexer::T_STRING); |
|
2651 | ||
2652 | return new AST\Literal(AST\Literal::STRING, $this->lexer->token['value']); |
|
2653 | case Lexer::T_INTEGER: |
|
2654 | case Lexer::T_FLOAT: |
|
2655 | $this->match( |
|
@@ 2907-2910 (lines=4) @@ | ||
2904 | $this->syntaxError("'.' or '('"); |
|
2905 | break; |
|
2906 | ||
2907 | case Lexer::T_STRING: |
|
2908 | $this->match(Lexer::T_STRING); |
|
2909 | ||
2910 | return new AST\Literal(AST\Literal::STRING, $this->lexer->token['value']); |
|
2911 | ||
2912 | case Lexer::T_INPUT_PARAMETER: |
|
2913 | return $this->InputParameter(); |