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

Reply via email to