Re: [racket] Google Challenge

2011-11-22 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22-11-11 19:44, Jordan Schatz wrote: > On Tue, Nov 22, 2011 at 01:30:27PM -0500, Neil Van Dyke wrote: >> Some clever students should show that the old ways of our people >> are not lost... and spend their (US) Thanksgiving weekend hacking >> Racket

Re: [racket] [scribble] pipe in code

2011-11-22 Thread Eric Tanter
I didn't know about scribble/bnf -- that's plain PERFECT for my needs. Thanks a lot! -- Éric PS: and thanks for the unquote-hacky solution, too! On Nov 22, 2011, at 5:01 PM, Matthew Flatt wrote: > At Tue, 22 Nov 2011 16:14:55 -0300, Eric Tanter wrote: >> @racketblock[ >> ::= '() >> |

Re: [racket] [scribble] pipe in code

2011-11-22 Thread Matthew Flatt
At Tue, 22 Nov 2011 16:14:55 -0300, Eric Tanter wrote: > @racketblock[ > ::= '() > | (cons ) > ] While `scribble/bnf' is a better approach, you could use @(define IS (tt "::=")) @(define OR (tt " | ")) @racketblock[ @#,IS '() @#,OR (cons ) ]

Re: [racket] [scribble] pipe in code

2011-11-22 Thread Grant Rettke
On Tue, Nov 22, 2011 at 1:40 PM, Matthias Felleisen wrote: > Have you tried the BNF grammars in scribble section: > >  http://doc.racket-lang.org/scribble/bnf.html?q=grammar Awesome. You guys make people wish they had a problem to solve using Racket! :) __

Re: [racket] [scribble] pipe in code

2011-11-22 Thread Matthias Felleisen
Have you tried the BNF grammars in scribble section: http://doc.racket-lang.org/scribble/bnf.html?q=grammar On Nov 22, 2011, at 2:14 PM, Eric Tanter wrote: > Hi, > > I want to typeset a BNF with Scheme-like syntax highlighting. > > eg: > > @racketblock[ > ::= '() > | (cons ) >

[racket] [scribble] pipe in code

2011-11-22 Thread Eric Tanter
Hi, I want to typeset a BNF with Scheme-like syntax highlighting. eg: @racketblock[ ::= '() | (cons ) ] except that the pipe `|' causes problem. I figured out that I can do the above with @verbatim|{...}| but then I lose the syntax highlighting ('() as a value, brown parentheses).

Re: [racket] Google Challenge

2011-11-22 Thread Jordan Schatz
On Tue, Nov 22, 2011 at 01:30:27PM -0500, Neil Van Dyke wrote: > Some clever students should show that the old ways of our people are > not lost... and spend their (US) Thanksgiving weekend hacking Racket on > "http://aichallenge.org/";. It would probably help if there was a racket starter package

Re: [racket] Google Challenge

2011-11-22 Thread Neil Van Dyke
Some clever students should show that the old ways of our people are not lost... and spend their (US) Thanksgiving weekend hacking Racket on "http://aichallenge.org/";. Besides the hack value and educational value, I think one can reasonably imagine that placing well in this competition woul

Re: [racket] Whalesong 1.9 (Internal Typed Racket Error)

2011-11-22 Thread Danny Yoo
There's a bug in Racket 5.2 that prevents Whalesong from compiling. Try either a pre-release version of Racket, or Racket 5.1.3. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Google Challenge

2011-11-22 Thread Marijn
On 01-11-11 16:35, Neil Van Dyke wrote: > Paulo J. Matos wrote at 11/01/2011 10:57 AM: >> Anyone working on a Racket starter package for the Ants Google >> Challenge? http://aichallenge.org/ > > Here's the documentation they point one to for writing your their > starter pack: > https://github.com

[racket] Whalesong 1.9 (Internal Typed Racket Error)

2011-11-22 Thread nitralime
Hello! I have run #lang racket/base (require (planet dyoo/whalesong:1:9/make-launcher)) and got the following errors: --

Re: [racket] plot: HOLY MOLEY!

2011-11-22 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21-11-11 18:52, Neil Toronto wrote: > On 11/21/2011 04:36 AM, Marijn wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> On 02-11-11 14:55, Laurent wrote: Which is just absolutely amazing. But then, just on a total

Re: [racket] formlet-fill

2011-11-22 Thread Jay McCarthy
On Mon, Nov 21, 2011 at 12:00 PM, Jordan Schatz wrote: > On Mon, Nov 21, 2011 at 06:32:18AM -0700, Jay McCarthy wrote: > > I can imagine implementing something like... > > > > (define record-formlet > > (formlet > > ;; Define the input format > > ([name (hash-

[racket] Whalesong 1.9 released

2011-11-22 Thread Danny Yoo
Hi everyone, Whalesong 1.9 corrects a few issues, particularly the use of external CSS stylesheets on the Android phone browsers. --- Changes: * Added view-has-attr? and remove-view-attr. * Added example that shows the use of checkboxes. See the "hot-cross-buns" example in http://hash