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 / 325
324  |  326
Subject: 
Re: NQC wishlist
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 4 Jan 2000 16:40:46 GMT
Viewed: 
2027 times
  
In article <FntDnJ.JI8@lugnet.com>, "Vlad Dumitrescu"
<vladdu@nospam.hotmail.com> wrote:


*Another wish* (maybe was already suggested?): a more powerful macro facility.
What I could use is the ## operator for textual concatenation...


Implementation of ## gets pretty nasty - at least within the current
pre-processor design.  I'll look at the C spec again, but I'm pretty sure
## forces a re-tokenization.  In the current design of NQC, tokenization
happens before pre-processing.  I'm not sure how to force retokenization
with a flex based lexer.  There are a few things I can try, but if its not
easy to implement its probably going to have to wait a while.

Dave

--
reply to: dbaum at enteract dot com



Message has 1 Reply:
  Re: NQC wishlist
 
(...) I believe the simplest way to do it would be to have an extra preprocessing pass... it will slow down compilation a little, it's true, but maybe not that much as to matter (compilation is anyway so much faster than the downloading anyway) then (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: NQC wishlist
 
(...) I am sure more people than me are looking forward to that! About the "smaller" integer variables, I have put together a couple of macros that simulate an array of packed "small" integers, any bit size works, but power-of-2 sizes do not waste (...) (25 years ago, 4-Jan-00, to lugnet.robotics.rcx.nqc)

17 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