Total Complexity | 3 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Interpreter |
||
8 | { |
||
9 | /** |
||
10 | * @var Parser |
||
11 | */ |
||
12 | private $parser; |
||
13 | /** |
||
14 | * @var Visitor |
||
15 | */ |
||
16 | private $visitor; |
||
17 | |||
18 | /** |
||
19 | * Interpreter constructor. |
||
20 | * @param Parser $parser |
||
21 | * @param Visitor $visitor |
||
22 | */ |
||
23 | public function __construct( |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param string $input |
||
34 | * @return bool|float|int|string|null |
||
35 | * @throws Exception\LexerException |
||
36 | * @throws Exception\UnknownIdentifier |
||
37 | */ |
||
38 | public static function evaluate(string $input) |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return bool|float|int|string|null |
||
50 | * @throws Exception\LexerException |
||
51 | * @throws Exception\ParseError |
||
52 | * @throws Exception\UnknownIdentifier |
||
53 | */ |
||
54 | public function interpr() |
||
58 | } |
||
59 | } |