Not Quite C, aka Not Quite C, is an open source programming language created in 2017 by Nora Sandler.
#771on PLDB | 7Years Old |
git clone https://github.com/nlsandler/nqcc
Not Quite C (NQC) is a programming language, application programming interface (API), and native bytecode compiler toolkit for the Lego Mindstorms, Cybermaster and LEGO Spybotics systems. It is based primarily on the C language but has specific limitations, such as the maximum number of subroutines and variables allowed, which differ depending on the version of firmware the RCX has. The language was invented by David Baum. Read more on Wikipedia...
task main () // Main program
{
SetPower(OUT_A, OUT_FULL); // Turn on motor A at 100% power.
OnFor(OUT_A, 200); // Let the motor run for two seconds, and then turn it off.
}
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | // A comment | |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | X |