Re: [racket] parser-tools help

2011-12-02 Thread Timothy Nelson
Hi Marijn, Two quick points: (1) The parser works with token structs, not symbols. Whenever you declare a token, a cooresponding "token-" form is made available to you when using lexer. You can find two examples of all this in your Racket\collects\parser-tools\examples folder. To see the process,

Re: [racket] parser-tools help

2011-11-30 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Timothy, On 30-11-11 15:14, Timothy Nelson wrote: > Hi Marijn, > > Two quick points: > > (1) The parser works with token structs, not symbols. Whenever you > declare a token, a cooresponding "token-" form is made > available to you when using lex

Re: [racket] parser-tools help

2011-11-30 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30-11-11 14:33, Marijn wrote: > Hi, > > I'm trying to use the parser-tools to parse the startup info for > the Google AI Challenge, but I am not sure what I'm doing wrong. I managed to get my code working, see below. (BTW parser gives a really sil

Re: [racket] parser-tools help

2011-11-30 Thread Eli Barzilay
40 minutes ago, Sam Tobin-Hochstadt wrote: > To answer the most insignificant part of your email: > > On Wed, Nov 30, 2011 at 8:33 AM, Marijn wrote: > > Finally, do racket's here-strings support indented format like > > bash's here-strings do? > > No, but if you use the Scribble `at-exp' reader

Re: [racket] parser-tools help

2011-11-30 Thread Sam Tobin-Hochstadt
To answer the most insignificant part of your email: On Wed, Nov 30, 2011 at 8:33 AM, Marijn wrote: > Finally, do racket's here-strings > support indented format like bash's here-strings do? No, but if you use the Scribble `at-exp' reader [1], it supports this: The Scribble syntax treats spac

[racket] parser-tools help

2011-11-30 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to use the parser-tools to parse the startup info for the Google AI Challenge, but I am not sure what I'm doing wrong. As a secondary question, given the repetitive nature of the code, how would one use macros to make it better? Finally