Time Parser

pwagland edited this page Jul 14, 2013 · 5 revisions

This example lives in the package org.parboiled.examples.time and is a simple demo of a parser for time specifications in various, very relaxed formats.

This examples demonstrates how parboiled can be used for tasks that would otherwise often be solved with regular expressions. Even though this parboiled parser description is not the shortest in terms of lines of code it certainly is very readable and therefore easily maintained, enhanced, etc.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.