Re: [racket-users] Writing a "command-line front-end" for a language

2022-09-04 Thread Shu-Hung You
On Sun, Sep 4, 2022 at 4:21 AM Reuben Thomas wrote: > > 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

Re: Fwd: [racket-users] Writing a "command-line front-end" for a language

2022-09-04 Thread Philip McGrath
On Sun, Sep 4, 2022, at 10:00 AM, Reuben Thomas wrote: > 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

Re: Fwd: [racket-users] Writing a "command-line front-end" for a language

2022-09-04 Thread 'Reuben Thomas' via Racket Users
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

Re: Fwd: [racket-users] Writing a "command-line front-end" for a language

2022-09-04 Thread 'Reuben Thomas' via Racket Users
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

Re: [racket-users] Writing a "command-line front-end" for a language

2022-09-04 Thread 'Reuben Thomas' via Racket Users
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