[racket] How to use parser-tools/yacc-to-scheme?

From: 亀田馬志 (masashi.kameda at gmail.com)
Date: Thu Feb 26 02:12:35 EST 2015

Hello.

I prepared a tiny-tiny file having this(test.l):

%{
%}
%%
a(b|c)*  { printf("OK\n"); }  /*Finding this pattern shows O.K.*/
. {printf("NG\n");}  /*. shows ELSE */
%%
/* Nothing */

And now, as the document of Parser Tools says, try runnning these command.

> (require parser-tools/yacc-to-scheme)
> (trans "./test.l")

It gives me something like an error:

<unsaved editor>:3:2: lexer: No match found in input starting with:

Did I misunderstand or do something wrong?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150226/d1fb2de8/attachment.html>

Posted on the users mailing list.