I'm trying to find a way to write a program by using more than one language models in Racket. For example, I wrote a c program in Racket like:
#lang c
#include <stdio.h>
int main() {
int a = 1;
printf("%d\n", a);
return 0;
}
Then is it possible to put python code after above c code in Racket program so that the Racket program will looks like:
#lang c
#include <stdio.h>
int main() {
int a = 1;
printf("%d\n", a);
return 0;
}
//Someting close the c language model
#lang python
def main():
b = 2
print "%d", %b
if __name__ == "__main__":
main()
I have installed c and python language package in Racket and can write these languages in Racket singly.