@@ 1428-1431 (lines=4) @@ | ||
1425 | return $this->StringPrimary(); |
|
1426 | ||
1427 | case ($lookahead === Lexer::T_TRUE): |
|
1428 | case ($lookahead === Lexer::T_FALSE): |
|
1429 | $this->match($lookahead); |
|
1430 | ||
1431 | return new AST\Literal(AST\Literal::BOOLEAN, $this->lexer->token['value']); |
|
1432 | ||
1433 | case ($lookahead === Lexer::T_INPUT_PARAMETER): |
|
1434 | switch (true) { |
|
@@ 2118-2120 (lines=3) @@ | ||
2115 | */ |
|
2116 | public function Literal() { |
|
2117 | switch ($this->lexer->lookahead['type']) { |
|
2118 | case Lexer::T_STRING: |
|
2119 | $this->match(Lexer::T_STRING); |
|
2120 | return new AST\Literal(AST\Literal::STRING, $this->lexer->token['value']); |
|
2121 | ||
2122 | case Lexer::T_INTEGER: |
|
2123 | case Lexer::T_FLOAT: |
|
@@ 2370-2373 (lines=4) @@ | ||
2367 | $this->syntaxError("'.' or '('"); |
|
2368 | break; |
|
2369 | ||
2370 | case Lexer::T_STRING: |
|
2371 | $this->match(Lexer::T_STRING); |
|
2372 | ||
2373 | return new AST\Literal(AST\Literal::STRING, $this->lexer->token['value']); |
|
2374 | ||
2375 | case Lexer::T_INPUT_PARAMETER: |
|
2376 | return $this->InputParameter(); |