nodejs / http-parser

http request/response parser for c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any parser for mysql like http-parser?

tianchao-haohan opened this issue · comments

This is just an open question. Is there any parser for mysql with the same design philosophy like http-parser?
Is that possible to extend the parser to support mysql?

Do you want to parse SQL statements or something else?

@ev-ermakov I know that antlr could be used to parser sql statement. What I meant here is the low level parser and the input to the parser is extracted from tcp payload. Just like http-parser, the input to the parser could be a buffer extracted from tcp payload and we do not need to consider the network stack in the parser.

The most valuable things in http-parser is the state machine and we can register the calback function in different state.