kernelci / kcidb

kernelci.org common database tools
GNU General Public License v2.0
27 stars 34 forks source link

Switch to using lex and yacc for OO request parsing #167

Open spbnick opened 3 years ago

spbnick commented 3 years ago

Right now OO request string parsing is done using regular expressions. That's hard to read and maintain. Instead switch to using lex and yacc modules. See kpet's ssp.py module for an example.

spbnick commented 2 years ago

@amfelso, this one isn't easy, unless you know lexx/yacc quite well. Note that there's an ABNF of the grammar in the same module, which should make things easier. Check it out, but don't hesitate to pick another good first issue instead of this one for now.

amfelso commented 2 years ago

Okay, sounds good!