Revision 1df946d...

Go back to digest for 28th August 2011

Features in Utilities

Friedrich Karl Tilman Pülz committed changes in [publictransport/NewJourneySearchParser] /:

Make the journey search parser more generic

- SyntaxItem is now the base class for abstract match items, eg.
a sequence of items or a number.
- Matches in a given search string are represented by MatchItem objects.
- SyntaxItems can be easily combined with operators (| for options like
in regexps, + for sequences) and functions (eg. SyntaxItem::optional()
to make a syntax item optional). The syntax can then be defined easily
using the helper class Syntax, which is also easy to read.

File Changes

Modified 10 files
  •   applet/journeysearchlineedit.cpp
  •   applet/journeysearchlineedit.h
  •   applet/journeysearchparser.cpp
  •   applet/journeysearchparser.h
  •   applet/journeysearchsuggestionwidget.cpp
  •   applet/journeysearchsuggestionwidget.h
  •   applet/publictransport.cpp
  •   applet/tests/CMakeLists.txt
  •   applet/tests/JourneySearchParserTest.cpp
  •   applet/tests/JourneySearchParserTest.h
10 files changed in total