Implement filter parsing #4

Closed
opened 2024-12-13 18:45:12 +01:00 by oysteikt · 0 comments
Owner

Filters are built up with non-regular grammar. Either we need to implement a parser with a stack of some sort, or we could use a framework like nom. Also, there are some non-documented details about filters, particularly a shorthand where you just write the tag name and value without any parenthesis.

Note that there also are some places in the protocol where the next command argument could be either a filter or something else, meaning that we probably should not consume iterators and the like before we know for sure that we expect a filter.

See:

Filters are built up with non-regular grammar. Either we need to implement a parser with a stack of some sort, or we could use a framework like `nom`. Also, there are some non-documented details about filters, particularly a shorthand where you just write the tag name and value without any parenthesis. Note that there also are some places in the protocol where the next command argument could be either a filter or something else, meaning that we probably should not consume iterators and the like before we know for sure that we expect a filter. See: - https://mpd.readthedocs.io/en/latest/protocol.html#filters - https://github.com/MusicPlayerDaemon/MPD/blob/master/src/song/Filter.cxx
oysteikt added this to the (deleted) project 2024-12-18 23:29:08 +01:00
oysteikt added this to the Initial release milestone 2025-01-10 19:13:04 +01:00
oysteikt added the feature request label 2025-01-10 19:13:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Grzegorz/empidee#4