Hello, I posted this question once, nobody answered, this is a second try. I believe there should be a solution because the problem seems rather common.
See, I have a DSL compiler implemented in Racket as a #lang, syntax-parse etc. Like most compilers, it can emit somewhat diifferent code from the same input program depending on user's needs. I am looking for a way to specify those needs to the compiler. Specifically, I have a backend for C code generation and another backend for generating Racket syntax objects. I have an option to emit numerical code with 64-bit or 80-bit floating point numbers. DrRacket has some GUI engine for compiler parameters (debugging, populate "compiled" directories etc), but I do not know how to use them in raco make, let alone bring my own options to DrRacket or raco make. With C, everyone is happy with macros and built-in options, e. g. gcc -O3 -DREAL=double -DDATABASE=POSTGRES prog.c The best idea for Rackey I have so far is to use good old environment varibles, e. g. REAL=double BACKEND=Racket raco make myprog.mylang But it has its obvious drawbacks. What do I do instead? Best regards, Dmitry -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/1E315A92-E90E-45F5-99C6-94AF25F325B3%40iaaras.ru.