| 1 | <?php |
||
| 15 | final class Parser extends BaseParser |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public const GRAMMAR_PATHNAME = __DIR__ . '/../../../resources/grammar/sdl.pp'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Make tokens public |
||
| 24 | * @var string[] |
||
| 25 | */ |
||
| 26 | public const LEXER_TOKENS = parent::LEXER_TOKENS; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $lexeme |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public static function pattern(string $lexeme): string |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $lexeme |
||
| 39 | * @param string $value |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public static function match(string $lexeme, string $value): bool |
||
| 46 | } |
||
| 47 |