Re: scanner/parser minimization
| От | Tom Lane |
|---|---|
| Тема | Re: scanner/parser minimization |
| Дата | |
| Msg-id | 14204.1362236984@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: scanner/parser minimization (Greg Stark <stark@mit.edu>) |
| Ответы |
Re: scanner/parser minimization
|
| Список | pgsql-hackers |
Greg Stark <stark@mit.edu> writes:
> Regarding yytransition I think the problem is we're using flex to
> implement keyword recognition which is usually not what it's used for.
> Usually people use flex to handle syntax things like quoting and
> numeric formats. All identifiers are handled by flex as equivalent.
> Then the last step in the scanner for identifiers is to look up the
> identifier in a hash table and return the keyword token if it's a
> keyword. That would massively simplify the scanner tables.
Uh ... no. I haven't looked into why the flex tables are so large,
but this theory is just wrong. See ScanKeywordLookup().
regards, tom lane
В списке pgsql-hackers по дате отправления: