riboseinc / ruby-vobject

Ruby library for parsing vObjects
BSD 2-Clause "Simplified" License
10 stars 3 forks source link

Parse vobjects with parse tree grammar instead of RegExp #1

Closed PeterTKY closed 7 years ago

PeterTKY commented 7 years ago

A regular expression parser is hard to maintain. Using some parse tree grammar can help. Some grammar parser library available in Ruby, such as treetop (https://rubygems.org/gems/treetop/versions/1.6.8).

opoudjis commented 7 years ago

Rsec. Done. Treetop arguably easier to maintain because it is so much better known; but I couldn't resist Rsec being 6 times faster. :-)