Searched refs:Lexer (Results 1 – 25 of 37) sorted by relevance
12
3 namespace PhpParser\Lexer;7 use PhpParser\Lexer; alias9 use PhpParser\Lexer\TokenEmulator\AttributeEmulator;10 use PhpParser\Lexer\TokenEmulator\EnumTokenEmulator;11 use PhpParser\Lexer\TokenEmulator\ExplicitOctalEmulator;12 use PhpParser\Lexer\TokenEmulator\MatchTokenEmulator;13 use PhpParser\Lexer\TokenEmulator\NullsafeTokenEmulator;14 use PhpParser\Lexer\TokenEmulator\PropertyTokenEmulator;17 use PhpParser\Lexer\TokenEmulator\ReverseEmulator;18 use PhpParser\Lexer\TokenEmulator\TokenEmulator;[all …]
5 use PhpParser\Lexer; alias10 protected function getParser(Lexer $lexer) {
12 abstract protected function getParser(Lexer $lexer);17 $parser = $this->getParser(new Lexer());24 $parser = $this->getParser(new Lexer());31 $parser = $this->getParser(new Lexer());36 $lexer = new Lexer();122 $parser = $this->getParser(new Lexer\Emulative());184 $parser = $this->getParser(new Lexer\Emulative());193 $lexer = new Lexer();207 class InvalidTokenLexer extends Lexer {
16 $parser = new Parser\Php7(new Lexer());
10 return new Lexer();
11 $parser = new Parser\Php7(new Lexer());
16 $lexer = new Lexer();18 $lexer = new Lexer\Emulative($version);
7 class Lexer { class
3 namespace PhpParser\Lexer\TokenEmulator;
18 * Add a new subclass of `Lexer\TokenEmulator`. Take inspiration from existing classes.19 * Add the new class to the array in `Lexer\Emulative`.20 * Add tests for the emulation in `Lexer\EmulativeTest`. You'll want to modify
91 path: lib/PhpParser/Lexer/Emulative.php96 path: lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php101 path: lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php106 path: lib/PhpParser/Lexer/TokenEmulator/AsymmetricVisibilityTokenEmulator.php111 path: lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php
29 * [Lexer](component/Lexer.markdown)
484 $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative());513 $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative());570 $parser = new PhpParser\Parser\Php8(new PhpParser\Lexer\Emulative());
1 Lexer errors
Completed in 28 milliseconds