Syntax examples for C++ and Java

Just two more examples of the clike mode in use, similar to Python + Cython on that page.