I'm trying to match anything that isn't a tab or space, but I end up 
matching nearly everything. Here's a snip from the code:

(define tsv-lexer
   [(eof) 'EOF]
   [#\space (tsv-lexer input-port)]
   [#\tab (tsv-lexer input-port)]
   *[(:+ (complement (:or #\Tab #\Space)))*
      (display "lexeme is:")
      (displayln lexeme)
      (token-FIELD lexeme))]

If use input "AAA AAAA" I get the output:
lexeme is:AAA AAAA
but it should be matching just AAA. What's going wrong?

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to