From: ptkwt@... (Phil Tomson) Date: 2003-11-17T10:20:51+09:00 Subject: Re: rlex and ryacc In article <20031109180247X.aamine@loveruby.net>, Minero Aoki wrote: >Hi, > > In mail "Re: rlex and ryacc" > "Luke A. Kanies" wrote: > >> I'm still having problems, but I have at least made progress. > >> racc: >> Does not give much info about what to do for a lexer. I've tried >> rlex, but they have incompatible means of specifying tokens, >> apparently, so I don't know how to use them together. Without >> a lexer, I can't really tell if this will work for me. > >I'm using StringScanner (strscan). It is NOT a lexer generator, >but it is sufficient for me (including speed). > >For real example of Racc, refer TMail or RDtool. > > TMail (uses #yylex. The lexer is written in Ruby and C) > http://raa.ruby-lang.org/list.rhtml?name=tmail > > RDtool (uses #do_parse and #next_token. > The lexer is written in Ruby using strscan) > http://raa.ruby-lang.org/list.rhtml?name=rdtool > Why not bundle a lexer with racc? Phil