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