Skip to content

A portable SuperForth compiler designed with performance and interoperability in mind.

Notifications You must be signed in to change notification settings

TheRealMichaelWang/Capote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capote

A portable Cish compiler designed with performance and interoperability in mind.

TO INSTALL

  • Download the latest release
  • Ensure you have GCC installed
  • Copy and paste these examples into capote.exe's working directory.
    • It is recommended that only the examples with the .sf extension be run. The .txt files are just some standard library files.
  • You need PROS if you intend to target vex.

TO RUN

On a PC

Type the following

capote -s [sourceFile] -o [outputCFile]

where [sourceFile] is your superforth source file, and [outputCFile] is your outputted c file.

Then type

gcc [outputCFile] -Ofast
./a

On Vex

Type the following instead

capote -s [sourceFile] -o main.c -vex

The only difference is the added -vex flag. This will tell the compiler to generate PROS compatible C-code.

Then copy and paste main.c into the src directory of your PROS project.

About

A portable SuperForth compiler designed with performance and interoperability in mind.

Resources

Stars

Watchers

Forks

Packages

No packages published