I’ll probably do this if I were you:
#lang racket
(require xml)
(struct data (b1 b2) #:transparent)
;; extract :: XExpr -> (Listof data?)
(define (extract xexpr)
(match-define `(ROOT () ,xs ...) xexpr)
(for/list ([e xs] #:when (list? e))
(match-define `(A () ,b1 ,b2) e)
(data b1 b2)
Kira wrote on 11/22/19 10:15 PM:
So now I am moved to (match) solution.
Last I looked, `match` isn't great for XML, regardless of what
representation the XML is in.
You might want to make a DSL that does exactly what you want. Don't
expect the off-the-shelf tools to be great -- all the nea
I just cannot understand how to solve XML related problems by using this
library.
Perhaps there is lack of examples, and no description of functions purpose.
And from bare description I am failing to imagine practical use.
For example, why (source) struct exists? And how I can use it?
Why there
On Fri, Nov 22, 2019 at 8:50 AM Neil Van Dyke wrote:
> That hypothetical parser assembling the parsed representation *could*
> then concatenate sequences of 2 or more contiguous strings representing
> CDATA, but that could be expensive, and might not be needed. Consider
> how large some XML and
Thank you for your answer.
My guess from the beginning was that this related to HTML parsing and web
server packages.
Neil Van Dyke
> I suspect it's an implementation decision of the parser, done for
> reasons of implementation ease or runtime efficiency. It's not-unusual
> in XML and HTML p
One helpful thing to do is expand the GUI section of awesome-racket
https://github.com/avelino/awesome-racket
I just sent them a PR for GUI-helpers.
martin
On Thu, Nov 21, 2019 at 9:21 AM James Platt wrote:
>
> On Nov 20, 2019, at 3:31 AM, Jack Firth wrote:
>
> > Would it have helped if the ge
**racket-2019-gamejam**
Submissions due in 7 days 2 hours 9 minutes 57 seconds Join jam
https://itch.io/jam/racket-2019-gamejam
--
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails fro
Documentation for individual packages is maintained by the package authors.
Clicking on the "package" link at the top brings you to
https://pkgs.racket-lang.org/package/colors which says the Git repo is at
https://github.com/florence/colors/tree/master/scribblings
I can submit a pull request th
In https://docs.racket-lang.org/colors/index.html
section 4 presents a function set-brigthness
and then proceeds to discuss how it affects brighness
Perhaps the function name and the discussion should involve brightness instead.
-- hendrik
--
You received this message because you are subscribed
I'm interested in this quote:
> [...] creating a huge problems with even simple XML parsing. (I am basically
> battling XML lib all day already to do most simple tasks)
I think that when you asked about why the xml collection behaves the way it
does, the conversation turned away from your expe
On 2019-11-20 02:11:57 -0500, 'John Clements' via Racket Users wrote:
> Racket version 7.5 is now available from
For anyone using Ubuntu, the PPA is now updated to v7.5 too.
https://launchpad.net/~plt/+archive/ubuntu/racket
It supports eoan (19.10), disco (19.04), bionic (18.04), xenial (16.04
Kira wrote on 11/22/19 12:43 AM:
I am trying to understated what purpose it serves? Does this done
intentionally, or this is just random side effect?
I suspect it's an implementation decision of the parser, done for
reasons of implementation ease or runtime efficiency. It's not-unusual
in XM
12 matches
Mail list logo