[ragel-users] Parser help
S.Geist
shatgeist at gmail.com
Fri Jan 28 07:38:55 UTC 2011
I'm trying to build a parser for text lines of the form:
=== line: {any chars here except \n} ===\n
I don't think I comprehend too well the way Ragel works, because I'm
failing miserably at my task.
Here's the code I've came up with: http://pastebin.com/rtp3dRSV
And the output:
$ echo "=== line: balpblap lapsl = klbokqe pblpel ===" | ./a.out
balpblap lapsl
balpblap lapsl = klbokqe pblpel
balpblap lapsl = klbokqe pblpel =
balpblap lapsl = klbokqe pblpel ==
What I need to do is extract the "{any chars here except \n}" part;
can anyone give me some hints on how to achieve this?
Thanks in advance!
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list