| | NQC 1.2 has been released
|
|
NQC Version 1.2 adds support for simple inline functions and basic expression evaluation. More details can be found at: (URL) (26 years ago, 9-Mar-99, to lugnet.robotics.rcx.nqc, lugnet.robotics)
|
|
| | Re: RcxCC for NQC 1.1?
|
|
Can you simply replace the nqcc executable in the RcxCC directory with the new version? (...) (26 years ago, 8-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | RcxCC for NQC 1.1?
|
|
I just downloaded RcxCC and noticed that it is still using NQC 1.0b4 Was the RcxCC project abandoned? Why it still uses an outdated version of NQC? Are there any other good alternatives to RcxCC for the new NQC? Thanks Laurentino Martins (...) (26 years ago, 7-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Compiling the compiler
|
|
(...) I've checked into this a little further. It comes down to something like the following: void foo(const char *p) { delete p; } On one hand, this is conceptually a violation of "constness" as a caller to foo() wouldn't know that the object (...) (26 years ago, 6-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Compiling the compiler
|
|
(...) What file are you compiling when you get this error? I think the fix is to include "Symbol.h" before the array templates get instantiated, but it is curious that neither Metrowerks nor gcc complain. (...) Yes, a cast should be fine. Offhand, (...) (26 years ago, 5-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Compiling the compiler
|
|
Thanks Dave, I did however find a version of Bison and Flex to use under windows. I didn't want to install the whole cygwin distribution so I searched and found stand alone versions of that came from DJGPP. I'm still having a few minor (...) (26 years ago, 4-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Compiling the compiler
|
|
(...) You can probably use parse.tab.c instead. The whole default/parse.cpp thing is specific to Unix builds. The Mac and Windows builds are done under Metrowerks with custom Flex/Bison plugins. The output of those plugins is in nqc/lexer.cpp and (...) (26 years ago, 4-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | Compiling the compiler
|
|
I am thinking about porting NQC to Windows CE. The first thing I noticed was that the default parse.cpp file was missing from the source distribution. Also, has anyone already created a VC++ project file for NQC? I'd like to get a copy if it has (...) (26 years ago, 3-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | UPDATE: nqce 1.0, a Java-based editor for NQC (Not Quite C)
|
|
nqce 1.0: a Java-based editor for NQC (Not Quite C) Not Quite C is a simple language with a C-like syntax that can be used to program the LEGO RCX, the brick computer which forms the heart of LEGO Mindstorms. NQC is written by Dave Baum, and (...) (26 years ago, 3-Mar-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Making Light Sensor Passive
|
|
I'm not sure what you mean by "making light sensor passive". The light sensor, by design, requires power to work. You can tell the RCX that the light sensor is a passive sensor, but you don't get much range in readings - the phototransistor in the (...) (26 years ago, 25-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | Making Light Sensor Passive
|
|
I was wondering if anyone knew how to do this in NQC? Thanks, Mike (26 years ago, 25-Feb-99, to lugnet.robotics, lugnet.robotics.rcx.nqc)
|
|
| | ANNOUNCE: nqce - a Java-based editor for NQC (Not Quite C)
|
|
ANNOUNCE: nqce - a Java-based editor for NQC (Not Quite C) Not Quite C is a simple language with a C-like syntax that can be used to program the LEGO RCX, the brick computer which forms the heart of LEGO Mindstorms. NQC is written by Dave Baum, and (...) (26 years ago, 24-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: One Big Program
|
|
Small misunderstanding... The RCX firmware contains a small interpreter which runs "RCX bytecodes". These are very different from H8 machine language. NQC generates code that runs within the interpreter, and asm statements just generate raw (...) (26 years ago, 23-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | One Big Program
|
|
I'm going to follow Dave's suggestion in an earlier post, and post to this group, on an issue I raised to him earlier: The three principal limitations to "large" program development on the RCX are: 1. 32 variables globally 2. 8 subroutines/ program (...) (26 years ago, 23-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC 1.2 in beta testing
|
|
The thing to remember about legOS is that pretty much anything you can do in C (gcc, egcs) in 32k of RAM, you can do with legOS. I believe that both legOS and NQC have definite places in the RCX programming universe. I happen to have been using gcc (...) (26 years ago, 22-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | RE: NQC 1.2 in beta testing
|
|
Well, those are still cool new functions...I will keep wishing the RCX firmware allowed runtime evaluations instead of constants. Maybe LegOS does...does anyone know? Rich (URL) Message----- From: news-gateway@lugnet.com (...) (26 years ago, 22-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC 1.2 in beta testing
|
|
(...) No, you still wouldn't be able to do that since the RCX bytecode to play a tone requires compile time constants as its arguments. The scoping would let you put variables inside of tasks (hiding them from other tasks), if you wanted... task foo (...) (26 years ago, 22-Feb-99, to lugnet.robotics, lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC 1.2 in beta testing
|
|
(...) Yep, MT-newswatcher can do that. Sorry I didn't remember to crosspost - must've been brain dead or something. (...) Very cool. A lot of people send me e-mail about NQC. I'll encourage them to raise issues on lugnet.robotics.rcx.nqc instead - (...) (26 years ago, 22-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC 1.2 in beta testing
|
|
(...) Hi Dave, Cool to see a separate beta-testing page! BTW, does MT-NewsWatcher 2.4.4 allow you to crosspost news articles and set the followups? I noticed that you posted the above message to 2 groups as 2 separate messages instead of 1. If your (...) (26 years ago, 22-Feb-99, to lugnet.robotics.rcx.nqc)
|
|
| | NQC 1.2 in beta testing
|
|
There have been substantial changes to the code generation algorithms, so I'm going to run a longer (and more formal) beta cycle for 1.2. Details can be found at: (URL) reply to: dbaum at enteract dot com (26 years ago, 21-Feb-99, to lugnet.robotics.rcx.nqc)
|