Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
32 | 10 | public function parse($code) { |
|
33 | // get tokens |
||
34 | 10 | $tokens = $this->tokenizer->tokenize($code); |
|
35 | |||
36 | // preparations |
||
37 | 10 | $tokens = $this->lexer->filterTokens($tokens); |
|
38 | 10 | $tokens = $this->lexer->repair($tokens); |
|
39 | |||
40 | // helpers |
||
41 | 10 | $this->tracker = new TokenTracker($tokens, $this->context); |
|
42 | 10 | $this->tokens = $tokens; |
|
43 | |||
44 | // analyze |
||
45 | 10 | $this->analyzer->analyze($tokens); |
|
46 | 10 | $this->context->reset(); |
|
47 | 10 | } |
|
48 | |||
86 |