cppsp is a transpiled script-like language. Its compiler:cppsp_compiler is a kind of source-to-source compiler.
Download the cppsp_compiler.exe or compiler the sourcecode by yourself.
Requirement:prepare your own c++ compiler and set it's folder to environment path.
Optional: put the folder path of exe to environment.
Use cmd or other console to compiler .cppsp file: cppsp_compiler(if not in environment path:.\cppsp_compiler.exe or c:...\cppsp_compiler.exe) script.cppsp.
Setting c++ include/lib folder by .ini file include.ini:C:...\include1,c:...\include2 lib.ini:C:...\lib1,c:...\lib2.
Official repo on github:
https://github.com/user19870/cppsp
r/cppsp:
https://www.reddit.com/r/cppsp/
Features
- #useclang or #usegcc : use clang++ or g++ compile command
- @command("..."): add command when compile like:-Os、-m64
- #overwrite:make @command() overwrite g++ .... or clang++ compile command like @command("g++ -Os -m64 -nostdlib -shared -o dll.dll dll.cpp") and add "*/" in the end of int main{..} but you'll need @funcion<</>> to make comment work
- import :import header in c++ and accept import iostream,x,y,.....
- @funcuion<<...>>: inject everything(void()、int()、bool()、even #define and using namespace) in <<...>> to the space under #include above int main()
- @inject(...) :inject everything in (...) to int main{...}
- print(): print content to console like print("12\n"," ",1," ",2.1,true,false," ")
- input(): input data to variables,but need @inject() to declare varibles
- //:comment
Follow cppsp
Other Useful Business Software
Our Free Plans just got better! | Auth0
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of cppsp!