1<?php
2
3declare(strict_types=1);
4
5namespace Antlr\Antlr4\Runtime\Dfa;
6
7use Antlr\Antlr4\Runtime\Utils\StringUtils;
8use Antlr\Antlr4\Runtime\VocabularyImpl;
9
10final class LexerDFASerializer extends DFASerializer
11{
12    public function __construct(DFA $dfa)
13    {
14        parent::__construct($dfa, new VocabularyImpl());
15    }
16
17    protected function getEdgeLabel(int $i) : string
18    {
19        return \sprintf('\'%s\'', StringUtils::char($i));
20    }
21}
22