Re: [racket] Reading large XML files

2013-10-23 Thread Konrad Hinsen
Neil Van Dyke writes: > Oleg Kiselyov's SSAX parser is one of the best XML parsers in any > language, and can work like a ``fold''. There are a few different > packagings of it. For documentation, you have to Google for Oleg's > papers on SSAX and SXML. Having used this myself for a whil

Re: [racket] Developing a Recursive Descent Parser in Racket

2013-10-23 Thread Neil Van Dyke
A lex&yacc-like pair of parser tools is included in Racket, and works OK. http://doc.racket-lang.org/parser-tools/ Danny Yoo did some work on higher-level parser specification. I'm not sure what's a good URL, but here are some: http://planet.racket-lang.org/display.ss?package=autogrammar.plt

Re: [racket] Developing a Recursive Descent Parser in Racket

2013-10-23 Thread Asumu Takikawa
On 2013-10-23 23:15:28 -0500, Gregory Gelfond wrote: >I would like to develop a simple compiler for a declarative language in >Racket (as a personal project), and am at a bit of a loss as to how to >proceed with respect to how to process text in Racket. What is the >standard means o

[racket] Developing a Recursive Descent Parser in Racket

2013-10-23 Thread Gregory Gelfond
Hi All, I would like to develop a simple compiler for a declarative language in Racket (as a personal project), and am at a bit of a loss as to how to proceed with respect to how to process text in Racket. What is the standard means of reading a sequence of string (or characters) from a file? Als

Re: [racket] struct contract violation problem

2013-10-23 Thread Robby Findler
It is extremely unlikely that out of date .zo files could cause this, altho it is, in theory, possible. Robby On Wed, Oct 23, 2013 at 7:55 PM, Erik Pearson wrote: > Thanks Robby, a nice teaching gift. > > I think the problem has "gone away". Realizing my ad-hoc test was run from > the file in

Re: [racket] Is there a list-serve dedicated to Racket or Scheme principles...

2013-10-23 Thread Kieron Hardy
Perhaps you're thinking of the Racket Developers mail-list: http://lists.racket-lang.org/dev/ Cheers, Kieron On Oct 23, 2013, at 13:59, Don Green wrote: > Is there a list-serve dedicated to Racket or Scheme principles and ideas... > or future development. > I remember reading about Racket des

Re: [racket] struct contract violation problem

2013-10-23 Thread Erik Pearson
Thanks Robby, a nice teaching gift. I think the problem has "gone away". Realizing my ad-hoc test was run from the file in which url triggers the error, I set about to embed the test in the file / dr racket window that generates url. I ran a test function, starting very simple and step by step ge

Re: [racket] struct contract violation problem

2013-10-23 Thread Robby Findler
Since there's little background here, I thought I'd just add that this feature you're coming across is one of the critical things that underpins Racket and differentiates it from languages like python and ruby. That is, what you're seeing is that Racket has a way to make unforgeable values. This ab

Re: [racket] struct contract violation problem

2013-10-23 Thread Jay McCarthy
Correct On Wed, Oct 23, 2013 at 4:38 PM, Erik Pearson wrote: > On Wed, Oct 23, 2013 at 3:31 PM, Jay McCarthy > wrote: >> >> Here are two ideas. >> >> 1) You simply have an old use of the original net/url. When # is >> printed, it uses the symbolic name and you can't really figure out >> what the

Re: [racket] struct contract violation problem

2013-10-23 Thread Matthias Felleisen
Or you defined (struct url ...) somewhere :-) On Oct 23, 2013, at 6:31 PM, Jay McCarthy wrote: > Here are two ideas. > > 1) You simply have an old use of the original net/url. When # is > printed, it uses the symbolic name and you can't really figure out > what the underlying code came f

Re: [racket] struct contract violation problem

2013-10-23 Thread Erik Pearson
On Wed, Oct 23, 2013 at 3:31 PM, Jay McCarthy wrote: > Here are two ideas. > > 1) You simply have an old use of the original net/url. When # is > printed, it uses the symbolic name and you can't really figure out > what the underlying code came from. I would do a grep to make sure > this is not th

Re: [racket] struct contract violation problem

2013-10-23 Thread Jay McCarthy
Here are two ideas. 1) You simply have an old use of the original net/url. When # is printed, it uses the symbolic name and you can't really figure out what the underlying code came from. I would do a grep to make sure this is not the case. 2) You are using namespaces somewhere and actually have

Re: [racket] struct contract violation problem

2013-10-23 Thread Matthias Felleisen
On Oct 23, 2013, at 6:25 PM, Erik Pearson wrote: > Excuse my poor experience with contracts, this is probably an easy one. > > I'm using a copy of net/url and have a strange problem. The copied library is > working fine in general, but this problem cropped up today: > > struct:exn:fail:con

[racket] struct contract violation problem

2013-10-23 Thread Erik Pearson
Excuse my poor experience with contracts, this is probably an easy one. I'm using a copy of net/url and have a strange problem. The copied library is working fine in general, but this problem cropped up today: struct:exn:fail:contract:blame url-port: contract violation expected: url? given: # in:

[racket] Scribble secref unlinked in PDF output

2013-10-23 Thread Tim Jervis
Dear Racket Users, I have been writing a document in Scribble, without output to PDF. The table of contents of the PDF nicely links the entries in the table to the sections in the document, so that when viewing the PDF on screen rather than paper, one can click or tap on a line in the table of

Re: [racket] Difference between drscheme and racket

2013-10-23 Thread John Clements
On Oct 23, 2013, at 6:57 AM, Aomar Maddi wrote: > I wrote a program using drscheme scheme. I'm having trouble getting it to > work with racketeering. > He tells me the mistakes that I do not understand. Thank you for your help. > Here is the source of this program: > > > ;(require (lib "comp

Re: [racket] Is there a list-serve dedicated to Racket or Scheme principles...

2013-10-23 Thread Sam Tobin-Hochstadt
On Wed, Oct 23, 2013 at 3:59 PM, Don Green wrote: > Is there a list-serve dedicated to Racket or Scheme principles and ideas... > or future development. > I remember reading about Racket designers taking a decision to split the > software, > one to serve the minimalists, > one to serve the rest. >

[racket] Is there a list-serve dedicated to Racket or Scheme principles...

2013-10-23 Thread Don Green
Is there a list-serve dedicated to Racket or Scheme principles and ideas... or future development. I remember reading about Racket designers taking a decision to split the software, one to serve the minimalists, one to serve the rest. Is there a list-serve, Racket or Scheme, that has such a focus?

[racket] Error when they use "programmatic" pkg

2013-10-23 Thread Ryan Newton
Here's the reproducer: (require pkg) (install "github://github.com/iu-c211/c211-libs/master") The error comes in the documentation building phase, for example: link: bad variable linkage; reference to a variable that has the wrong procedure or structure-type shape reference phase level: 0 v

Re: [racket] raco exe and collection path

2013-10-23 Thread Erik Pearson
Hi Sam, I was replacing net/url, but with a copy of the system library which I was modifying in a way that would not alter the existing public interface. I was relying on some external packages like racket-couchdb that I'd rather keep working as-is in terms of the net/url interface. At least at th

[racket] Difference between drscheme and racket

2013-10-23 Thread Aomar Maddi
I wrote a program using drscheme scheme.I'm having trouble getting it to work with racketeering. He tells me the mistakes that I do not understand.Thank you for your help. Here is the source of this program: ;(require (lib "compile.ss")) ;(compile-file "gplateau.scm" "../gplateau.zo") (module