final class KeywordList
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Extracts the keyword table from PostgreSQL's src/include/parser/kwlist.h.

Methods§

public function parse(string $source): array{keywords: array<string, string>}

Reads the keyword table.

Parameters

$sourcestringContents of `kwlist.h`

Returns

array{keywords: array<string, string>} Terminal name by upper-cased keyword

Throws

RuntimeException When the file declares no keyword
Test cases 2
Calls 4

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2