Not eXactly C


Not eXactly C, or NXC, is a high-level programming language for the Lego Mindstorms NXT designed by John Hansen in 2006. NXC, which is short for Not eXactly C, is based on Next Byte Codes, an assembly language. NXC has a syntax like C. The IDE for NXC is the Bricx Command Center.
The NXC compiler is available under the Mozilla Public License. A sample code is as shown below:

task main //sets a new task. main is compulsory