|
I have just released a new beta of NBC/NXC. It is available from the NBC
website: http://bricxcc.sourceforge.net/nbc/
BricxCC has been updated with a few syntax highlighting changes (minor). The
latest test release is at http://bricxcc.sourceforge.net/ via the link in the
NXT News section near the top.
Version 1.0.1.b23
-----------------
- Adds support in NXC for nested switch statements
- Adds support in NXC for array indexed math assignments (e.g., x[0] += 23;)
- Adds support in NXC for using true and false in asm blocks
- Adds support in NXC for local variable declarations anywhere within a
function. Local variable declarations used to be limited to the beginning of a
function block. Locals now honor nesting levels and go out of scope if they are
declared within a block statement. "for" loops can now declare a local or use
an existing variable:
for (i = 10; i > 0; i--) {} // i must already be in scope
for (int i = 0; i < 10; i++) {} // i has scope limited to for loop
- Adds support in NXC for empty for loop (e.g., for ( ; ; ) ) for infinite loops
- Adds support in NXC for scalar and string local (not global) variable
initialization via expressions of any form (not just constants):
int i = Random(10);
string msg = NumToStr(i);
- Adds support in NXC for single-dimension global variable array initialization
using a syntax like array initialization in NBC:
// initialize X to 20 elements all equal to 1.
int X[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
- Fixes indexing of local arrays (used to only work with globals)
- Fixes a bug in the NBC sign, shl, and shr opcodes which was triggered
by passing the same variable as the first and last arguments:
sign x, x
shl x, y, x
shr x, y, x
John Hansen
|
|
Message has 1 Reply: | | Re: NXC News
|
| Someone sent me a link today to what I guess is one of the first existing tutorials for NXC, at least the first one in German (please correct me if I'm wrong): (URL) if this here allegedly is an "American forum" (HOOOTS!), it might be of interest (...) (18 years ago, 22-Jan-07, to lugnet.robotics, lugnet.robotics.nxt)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in...
Robotics
NXT programmable brick
|
|
|
|