Loginskip to content

December 13th, 2006

Not eXactly C

Announcing Not eXactly C (NXC), a C-like programming language for the standard NXT firmware. Not eXactly C is built into the latest NBC compiler. If the source code file has a .nxc extension, then NBC processes the code using the NXC parser before compiling the resulting NBC assembly code. NXC is the only C-like programming solution available on Win32, Mac OSX, and Linux platforms.

http://bricxcc.sourceforge.net/nbc/

The latest test release of BricxCC also features additional support for the NXC language.

http://bricxcc.sourceforge.net/test_release.zip

Some of the features already present in NXC are:

- string variables and string literals with support for concatenation.
- while, do-while, if/else, repeat, and for loop programming constructs.
- asm block statement for writing NBC code within NXC.
- Lots of API functions for drawing, reading sensors, controlling motors, button state, etc. (More are on the way)