SugarCpp is a programming language which compiles to readable C++11 code.
It adds lots of syntax sugar in to C++ based on the power of C++11.
SugarCpp is still under development. The C# version works OK. Now it is being re-written using SugarCpp itself(bootstrap). If you have any idea, please open a issue.
Try SugarCpp in your browser: http://curimit.com/project/SugarCpp/
Unit Test
Challenge the compiler on unit test page:
- Add new test cases.
- Edit/Remove exist test cases.
- Run all unit tests.
Features
- Indent-based code block.
- Borrow lots of syntax sugar from CoffeeScript.
- Go style defer/finally statement, be able to handle exceptions.
- Powerful for loop.
- Multiple return values & parallel assignment.
- C# style lambda expression.
- Inline function definition.
- Haskell style infix function.
- Switch case.
- Scala style case class.
Plugins
Sublime-Text: https://github.com/curimit/Sublime-SugarCpp
from https://github.com/curimit/SugarCpp