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
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to