[plt-scheme] help with parser-tools collection

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Mon Aug 9 07:21:06 EDT 2004

--- Scott Owens <sowens at cs.utah.edu> wrote:

> The lexer doesn't have built-in support for
> case-insensitivity.
> The best you can do is:
> (define-lex-abbrevs (z (: "Z" "z")) (o (: "O" "o")) (n (:
> "N" "n")) (e 
> (: "E" "e")))
> (lexer
>   ...
>   ((@ z o n e) ...)
>   ...)

If that's the best you can do you aren't even trying!  Real
men would hack the syntax by writing their own 
define-ci-lex-abbrev macro which expands into
define-lex-abbrevs.  Writing this macro is left as an
exercise for the reader.

Cheers,
Noel

=====
Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Posted on the users mailing list.