- write your program just like that, `1 + 2` with no #lang line,
- run your program with a raco command that runs the program once for each
Something like `raco mystery-lang -L lang1 -L lang2 -L lang3 file.txt`
In case you need an example raco-command:
On Sat, Aug 12, 2017 at 7:45 PM, Sam Waxman <samwax...@gmail.com> wrote:
> Let's say I have a program the user entered that just looks like
> 1 + 2
> and I have three different #langs, all with different parsers and
> different notions of addition, for which this is a valid program. I'm
> looking to make it so that this program outputs the following:
> "Output for language 1:
> Output for language 2:
> Output for language 3:
> Is there any simple way to do this?
> 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.
> For more options, visit https://groups.google.com/d/optout.
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
For more options, visit https://groups.google.com/d/optout.