On Mon, 5 Sept 2022 at 02:20, Shu-Hung You
wrote:
>
> Okay, if you want to bypass the #lang protocol entirely, here is the
> needed code. As you have expected, it uses eval and then calls
> dynamic-require.
>
Thanks very much for this code and detailed explanation, that was a great
help.
--
ht
On Sun, 4 Sept 2022 at 19:39, Philip McGrath
wrote:
>
> You may indeed want a tool that supports files without #lang if you are
> working with an existing language and there isn't a way to make the #lang
> line acceptable to its existing grammar.
>
That's exactly it!
> Despite the title of the
On Sun, 4 Sept 2022 at 10:31, Reuben Thomas wrote:
> On Sun, 4 Sept 2022 at 04:13, Philip McGrath
> wrote:
>
>>
>> However, in some cases you might really want a program other than
>> `racket` as the entry point for your language: for instance, maybe you want
>> to have flags for controlling whe
On Sun, 4 Sept 2022 at 04:13, Philip McGrath
wrote:
>
> However, in some cases you might really want a program other than `racket`
> as the entry point for your language: for instance, maybe you want to have
> flags for controlling where the output goes. One example of such a program
> is the `sc
On Sat, 3 Sept 2022 at 19:10, Shu-Hung You
wrote:
> Running `racket foo.asm` will produce the desired output, so a shell
> script that directly passes the arguments to Racket could work.
> Otherwise, just use (dynamic-require filename #f) in main.rkt.
>
Thanks for helping!
Don't both of these m
I'm a relative Racket newbie, and I've just enjoyed *Beautiful Racket*.
I am working on a Racket implementation of a simple assembler (for the Hack
VM in the NAND2Tetris course).
I have a partial implementation up and running using #lang lines. I would
like to add a more traditional command-line
On Sun, 8 Dec 2019 at 17:07, Matthew Flatt wrote:
>
> There's now a 'no-toc+aux style property to completely get rid of that div.
>
That's good, thanks; but I see that the maincolumn div is still emitted, so
there's still a left margin. (I'm sorry, I hadn't looked into the CSS
before to work out
On Fri, 6 Dec 2019 at 15:43, Matthew Flatt wrote:
> Do 'no-toc and 'no-sidebar style properties on the main part help? Or
> does that still leave navigation elements that you want removed?
>
That's a great improvement, thanks, although it still leaves the "tocset"
div, now empty.
What I couldn'
On Fri, 6 Dec 2019 at 15:32, Sam Tobin-Hochstadt
wrote:
> Is there a reason that not showing it is a problem, relative to not
> having it in the HTML? The CSS approach is quite easy.
>
I'm trying to generate XHTML for inclusion in web sites (as the main page
contents) and ePUB files, so it's jus
(Surprised that extensive Googling, read of Racket documentation, and
searching the mailing list archive doesn't throw up anything; surely I've
missed something? Apologies in advance therefore!)
I notice that although xrepl is loaded by default in command-line racket,
and indeed in DrRacket, its c
On Thu, 5 Dec 2019 at 14:47, Sam Tobin-Hochstadt
wrote:
> The usual way I've done this is with some custom CSS to set the
> navigation to "display: none".
>
Thanks. I would really prefer not to have the navigation apparatus, so I
guess post-processing the output is the only thing I can do withou
How can I get scribble/base to output HTML without the navigation elements?
I just want a plain HTML page, similar to the look of the LaTeX output.
I can of course extract the "main" div from the standard output, but that
seems to be somewhat shutting the stable door after the horse has bolted.
G
On Wed, 4 Dec 2019 at 13:45, Matthew Flatt wrote:
> I'm not sure I follow completely, but I think the problem is the
> compound-paragraph parsing that is triggered by the lack of space
> between the two `para` calls:
>
Exactly right. I tried to find out if this is documented. I couldn't find
any
After a few more experiments, I find that I can't work out another problem
I was having: nested elements (which is not legal HTML).
This occurs when I put a style on a @para; for example, a small change to
the example code that Matthew kindly provided:
#lang scribble/base
@(require scribble/core
On Mon, 2 Dec 2019 at 23:06, Matthew Flatt wrote:
>
> Ah, it looks like `alt-tag` is the one that works, instead of
> `body-id`. (I'll fix the docs.)
>
Thanks for this. I had come across alt-tag before, but I didn't think of it
here; it didn't occur to me that an HTML-specific solution would wor
On Mon, 2 Dec 2019 at 22:47, Matthew Flatt wrote:
> Does this get closer?
>
> @(define foo-style (make-style "foo" (list (body-id "div"
>
Thanks for the suggestion. It doesn't seem to make any difference. I added
scribble/html-properties to my requires, of course, then since I couldn't
tell
I'm trying to get LaTeX output that wraps an environment around several
paragraphs (while containing @para elements) and HTML output that does
something similar with a . HTML is actually my sticking point, because
so far all I've managed to do is get nested elements, which is illegal.
Here's a M(
On Sun, 17 Nov 2019 at 20:27, Reuben Thomas wrote:
> On Sun, 17 Nov 2019 at 06:35, Matthew Flatt wrote:
>
>> At Sat, 16 Nov 2019 18:32:00 +, Reuben Thomas wrote:
>> > On Sat, 16 Nov 2019 at 15:06, Matthew Flatt wrote:
>> >
>> > >
>> > > The checked-in `configure` scripts are generated by "m
On Sun, 17 Nov 2019 at 06:35, Matthew Flatt wrote:
> At Sat, 16 Nov 2019 18:32:00 +, Reuben Thomas wrote:
> > On Sat, 16 Nov 2019 at 15:06, Matthew Flatt wrote:
> >
> > >
> > > The checked-in `configure` scripts are generated by "make-configure" in
> > > "racket/src/ac", and that script does
On Sat, 16 Nov 2019 at 15:06, Matthew Flatt wrote:
>
> The checked-in `configure` scripts are generated by "make-configure" in
> "racket/src/ac", and that script doesn't refer to "start/configure.ac".
>
Thanks for the confirmation. What about start/install2.ac?
--
https://rrt.sc3d.org
--
You
On Thu, 14 Nov 2019 at 19:59, Reuben Thomas wrote:
> On Thu, 14 Nov 2019 at 12:51, Matthew Flatt wrote:
>
>> At Wed, 13 Nov 2019 21:58:24 +0000, "'Reuben Thomas' via Racket Users"
>> wrote:
>> > While looking into implementing this, I discover
On Thu, 14 Nov 2019 at 12:51, Matthew Flatt wrote:
> At Wed, 13 Nov 2019 21:58:24 +, "'Reuben Thomas' via Racket Users"
> wrote:
> > While looking into implementing this, I discovered that
> `racket/src/start/
> > configure.ac`, which seems to have b
On Wed, 13 Nov 2019 at 13:40, Matthew Flatt wrote:
>
> Maybe the solution is to add `--disable-prefix` and have the top-level
> makefile use that along with `--enable-origtree`?
>
Sounds good to me.
While looking into implementing this, I discovered that `racket/src/start/
configure.ac`, which
On Tue, 12 Nov 2019 at 17:53, Matthew Flatt wrote:
> At Thu, 7 Nov 2019 23:14:52 +, "'Reuben Thomas' via Racket Users"
> wrote:
> > I have a CONFIG_SITE environment variable which contains the following
> line:
> >
> > test "$prefix"
Thanks, Matthew. I'm currently stuck building racket, on which I shall post
a separate question, but I shall use this method once I've made that work!
On Thu, 7 Nov 2019 at 13:37, Matthew Flatt wrote:
> It's not technically ok to shadow a package in installation scope with
> one in user scope, a
On Thu, 7 Nov 2019 at 13:37, Matthew Flatt wrote:
> It's not technically ok to shadow a package in installation scope with
>
> Meanwhile, the current tools are better set up for starting with a
> GitHub checkout and building there. In that setting, for example, it's
> easier to use `raco pkg upda
I have a CONFIG_SITE environment variable which contains the following line:
test "$prefix" = NONE && prefix="$HOME_LOCAL"
(HOME_LOCAL is set to $HOME/.local)
Things then go wrong because racket/src/start/configure.ac code relies on
prefix still being set to NONE in order to finally set prefix t
On Tue, 5 Nov 2019 at 19:01, John Clements
wrote:
>
> raco pkg update —clone drracket
>
> in, say, your home directory should clone the package that includes the
> drracket collection (and possibly others that are in the same package).
> After this is complete, your drracket should depend on this
I'm trying to make a small improvement to the drracket package, and of
course I'd like to test it!
I have racket 7.4 installed on my Ubuntu system from the PPA, so of course
drracket is installed as part of the installation.
After reading the "raco pkg" docs, and searching the mailing list, I c
29 matches
Mail list logo