Watch out for that unary minus! ;) -- Mike Caron
-----Original Message----- From: Ralph Versteegen <[email protected]> Date: Wed, 7 Apr 2010 20:58:39 To: <[email protected]> Subject: Re: [Ohrrpgce] SVN: teeemcee/3466 Wrote a proper lexer for HSpeak - nearly: it still produces strings rath On 07/04/2010, Seth Hetu <[email protected]> wrote: >> Wrote a proper lexer for HSpeak - nearly: it still produces strings rather >> than lexemes since the rest of HSpeak wouldn't know what to do with them. > > Congratulations! May I ask what kind of lexer it is? (Recursive > descent, I'm guessing). > > -->Seth I thought recursive descent was used only for parsers, not lexers (but maybe complicated context sensitive grammars would require them)? I looked around for parser generators for Euphoria and found one, but it had an infexible lexer, so after considering writing my own lexer generator I simply hand coded it - just as well, turned out to not be much work. The lexer doesn't distinguish numbers yet, but I think I shall add that, because I think I shall upgrade HSpeak to use tokens rather than strings (which will be a huge change requiring a lot of rewriting) _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
