Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Not eXactly C

Not eXactly C - Programming language

< >

Not eXactly C is a programming language created in 2006.

#898on PLDB 17Years Old 125Users
0Books 0Papers

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. Read more on Wikipedia...


Example from hello-world:
task main() { TextOut(0, LCD_LINE1, "Hello World"); }
Example from Wikipedia:
task main() //sets a new task. main() is compulsory { OnFwd(OUT_BC,75); //ask the motors connected to ports B and C to move forward at a power of 75. Wait(5000); //wait for 5 seconds [the value is in milliseconds](note that 1000 = 1 second) Off(OUT_BC); //off the motors connected to ports B and C }

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging TextOut
Comments
// A comment
Line Comments //
// A comment
Semantic Indentation X
pan.html · nxc.html · mary.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com