Ryan Bigg
2012-11-19 00:40:30 UTC
I've been attempting to learn Ragel over the weekend and the project I've
chosen is parsing all the wonderful formats that email addresses come in.
This is the program I've come up with: https://gist.github.com/4108274
I am not happy with the result because I am sure it can be tidier. This is
the first type of this work I've done, so please go easy. All the tests
(written in Ruby) are passing.
What simple things am I doing wrong? Can anyone give me some tips on
improving this or direct me to resources, other than the guide?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.complang.org/pipermail/ragel-users/attachments/20121119/9c44ac31/attachment.html>
chosen is parsing all the wonderful formats that email addresses come in.
This is the program I've come up with: https://gist.github.com/4108274
I am not happy with the result because I am sure it can be tidier. This is
the first type of this work I've done, so please go easy. All the tests
(written in Ruby) are passing.
What simple things am I doing wrong? Can anyone give me some tips on
improving this or direct me to resources, other than the guide?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.complang.org/pipermail/ragel-users/attachments/20121119/9c44ac31/attachment.html>