Time Parser

pwagland edited this page Jul 14, 2013 · 5 revisions
Clone this wiki locally

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.