This is one more version of Csq programming language which's syntax looks much similar to Python and much faster than Csq Version-2.
You should have g++ compiler
It's processes are similar to the in the programming language Nim but here what it does it that a Intermediate code converter converts .csq to .csqm and later .csqm is converted to .cpp and it uses a prebuilt C++ compiler such as in this it uses clang++ to produce output.
print("Hello World")
if condition so ..... ends else if condition so ..... ends else go ..... endsvar i = 48
//int i = 48 //But if you want to define a str so don't write like var v = "hello" because in this case it's considered as const char* use var v = str("hello")
for var i : range(11)
print(i,",")
ends
def fizz()
return str("BUZZ")
fizz ends
Csq uses C++ at backend to compiler IR codes to generate machine code.def fizz(str name)
return name + " BUZZ"
fizz ends
fizz("Aniket")
["priv","pub","ends","meth"]
to comment you could use //
In base directory all necessary header are present such as for code analysis, strings, arrays ...
Go to base/token.h and there you will see a dictionary in which operators with their meaning in C++ are there. After changes compile csq.cpp and mcsq.cpp so that the changes can be applied.
Well to provide memory safety there is one class which applies the concept of Smart Pointers using this it will free the memory by it self.