Re: [racket-users] Custom color lexer for DrRacket that requires lookahead

2016-05-30 Thread Alexis King
> On May 30, 2016, at 12:23, Alexis King wrote: > > Now the colorer attempts to lex the slash alone as a new token without > attempting to re-lex “foo”. Since a forward slash is not valid at the > beginning of an identifier, it is colored as an error. > > Basically, when

Re: [racket-users] Custom color lexer for DrRacket that requires lookahead

2016-05-30 Thread Robby Findler
I'm not quite following but I agree the dont-stop is not what you want. That is a form of concurrency control and not relevant here. The lexing apparatus works best if your lexing has the invariant that editing a lexeme doesn't invalidate things before it. Is there another way to recast lexing

Re: [racket-users] Constructor-style printing outside of DrRacket?

2016-05-30 Thread Leif Andersen
Although it's an old library, you can use `construction-style-printing` and `mzlib/pconvert` to get this effect. Take the following module: #lang racket (require mzlib/pconvert) (global-port-print-handler (λ (data output [quote-level 0]) (parameterize ([current-output-port output]

[racket-users] Constructor-style printing outside of DrRacket?

2016-05-30 Thread Alex Knauth
Hello, DrRacket has a setting that allows me to change the printing style between four choices: print, constructor, quasiquote, and write. Is there a way to turn on constructor-style printing outside of DrRacket? If there isn't a simple way to do this, should a simple way be added to racket?

Re: [racket-users] DrRacket: Laggy when rendering images as results vs display-ing

2016-05-30 Thread Daniel Prager
Hi Robby Thanks for this! Dan On Sun, May 29, 2016 at 9:57 AM, Robby Findler wrote: > I've pushed another attempt. This one special cases 2htdp/image images > so they should be now equally efficient in both write and display. It > also makes things so that write