Re: [racket-users] Interpreting srclocs from lexer-src-loc with unicode characters

2016-01-13 Thread Ben Draut
Ah, that did it. Thank you! On Wed, Jan 13, 2016 at 3:38 PM Matthew Flatt wrote: > You can adjust a port to count characters instead of bytes by using > `port-count-lines!`. > > At Wed, 13 Jan 2016 12:23:24 -0800 (PST), Ben Draut wrote: > > I've been tinkering with a

[racket-users] Interpreting srclocs from lexer-src-loc with unicode characters

2016-01-13 Thread Ben Draut
I've been tinkering with a lexer/parser for Lambda calculus expressions. I'm trying to add a feature to highlight unexpected characters, rather than making the user count columns. For example, the lexer will choke on this string, because it doesn't have a match for % anywhere: (λx.x %) I'd like