To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1631
1630  |  1632
Subject: 
Re: Ideas for NQC
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 9 Mar 2004 13:26:19 GMT
Viewed: 
7448 times
  
In lugnet.robotics.rcx.nqc, Nicolas Alvarez wrote:
Now that Dave Baum has given you the control under NQC, how will you manage to
work both on NQC and on BricxCC???

Well, it won't be easy.  It doesn't help that I've been working long hours at my
day job either.  But I'll do my best.

For NQC, something that you can add is optional use of semi-colon. • [...]
Semi-colon is not necessary if commands are in different lines, they are only
necessary between commands in the same line.  I think this is not part of the
API, it is part of the programming language.

In C & C++ it is not optional to use a semi-colon at the end of a line.  The
same goes for Java, C#, and Pascal.  The NQC language follows this pattern of
requiring a semi-colon at the end of each line.  I don't plan on changing it.

For BricxCC, I suggest adding automatic correction of command case. For example,
if you write
playtone(523,10), instead of showing "undefined function 'playtone' in line xx",
try to make BricxCC change it into PlayTone.

BricxCC already has this feature - at least, a feature that is very much like
what you describe.  It's called Code Completion.  Try typing playtone then
Ctrl+Space (the hot key is configurable via the Preferences dialog).  You should
see a pop-up window with PlayTone listed as the only option.  Press Enter to
replace "playtone" with "PlayTone".

Since NQC has a macro definition feature and support for header files and since
you can define your own functions which take parameters it is not such a simple
thing to be able to assume that playtone(523, 10) is supposed to be the built-in
API function called PlayTone.  But the Code Completion feature at least gives
you the option of case correcting built-in API constants, functions, and
reserved words.


Maybe these changes are already made. I have BricxCC 3.3 (build 3.3.7.5) and NQC
2.5a1. What are the last versions available?

The latest versions are BricxCC 3.3.7.7 and NQC 3.0.a2.  You should definitely
consider upgrading since all versions of NQC prior to 3.0.a2 have a bug in the
Spybot subroutine return code generation.

John Hansen
http://bricxcc.sourceforge.net/



Message has 1 Reply:
  Re: Ideas for NQC
 
"John Hansen" <JohnBinder@aol.com> escribió en el mensaje news:HuB9Bv.1KyA@lugnet.com... (...) NQC (...) What I download is an upgrade or the whole program again? Is it necessary to uninstall the previous version? (21 years ago, 27-Apr-04, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Ideas for NQC
 
Hi John, Now that Dave Baum has given you the control under NQC, how will you manage to work both on NQC and on BricxCC??? I recomend the following changes: For NQC, something that you can add is optional use of semi-colon. It's a pain when I do a (...) (21 years ago, 8-Mar-04, to lugnet.robotics.rcx.nqc)

29 Messages in This Thread:











Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR