Skip to content

Latest commit

 

History

History

rush-transpiler-c

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

C Transpiler Backend

A rush transpiler which generates ANSI C code without the need for external dependencies.

Running rush Code

  • Prerequisite: A file ending in .rush which contains the program.
  • Execute the following command in order to run the program.
cargo run your-file.rush
  • Execute the following command in order to compile and then run the emitted C file
  • The -std=c89 flag is completely optional but shows that the transpiler indeed generates ANSI C.
gcc output.c -std=c89 -o out && ./out