RE: [racket-users] Calling a procedure without allowing it to permanently alter parameters.

2016-01-13 Thread Jos Koot
Jon and Jon, Both thanks for your replies. I'll stick to call-in-nested-thread. Jos _ From: Jon Zeppieri [mailto:zeppi...@gmail.com] Sent: miércoles, 13 de enero de 2016 6:03 To: Jos Koot Cc: Racket Users Subject: Re: [racket-users] Calling a procedure without allowing it to permanently

[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

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

2016-01-13 Thread Matthew Flatt
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 lexer/parser for Lambda calculus expressions. I'm > trying to add a feature to highlight unexpected characters, rather

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

Re: [racket-users] Web server: can't get radio-group formlet to process

2016-01-13 Thread Marc Kaufmann
So, turns out I can answer my own question, if ugly hacks count. I copy-pasted (yep, DRY is my guiding principle: Do Repeat Yourself) the code for radio-group and the functions it depends on and changed the part of the code that creates the HTML in 'input-group' from (for/list ([vn

[racket-users] A template/example to use to build a workflow illustration/flowchart in slideshow

2016-01-13 Thread C K Kashyap
Dear group, I am trying to use racket for my presentation - essentially document the flow of code of a system I've been going through for a few days - I was wondering if there is a slideshow example that I could use to build on top of to illustrate a workflow. Regards, Kashyap -- You received

Re: [racket-users] Web server: can't get radio-group formlet to process

2016-01-13 Thread Marc Kaufmann
Thanks Jay. On Mon, Jan 11, 2016 at 11:15 AM, Jay McCarthy wrote: > Hi Marc, > > Most formlets are typed as `(formlet/c (or/c false/c binding?))` where > the `binding?` is returned when the thing is there and the `#f` is > returned when it isn't. However, if you use