Conditions | 3 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
45 | public function analyze($context) |
||
46 | { |
||
47 | // get lex tokens |
||
48 | $predefinedTokens = array_flip($this->tokens); |
||
49 | $lexTokens = array_map(function ($lexToken) use ($predefinedTokens) { |
||
50 | if ($lexToken instanceof Token) { |
||
51 | return $lexToken; |
||
52 | } |
||
53 | if (isset($predefinedTokens[$lexToken])) { |
||
54 | return new Token($lexToken); |
||
55 | } |
||
56 | throw new UnknownTokenFromLexException($lexToken); |
||
57 | }, $this->lexer->analyze($context)); |
||
58 | |||
59 | // get FIRST |
||
60 | // print_r($this->syntaxes); |
||
61 | |||
62 | // get FOLLOW |
||
63 | |||
64 | // get LOOKAHEAD |
||
65 | |||
66 | // with null |
||
67 | |||
68 | // |
||
69 | |||
70 | $parsingTables = []; // [NO_STATES][NO_SYMBOLS + 1] |
||
71 | // print_r($lexTokens); |
||
72 | return ''; |
||
73 | } |
||
74 | } |
||
75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.