> 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
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
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]
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?
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
5 matches
Mail list logo