X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "'Raf256' Rafal Maj" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: not-reserved characters Followup-To: comp.lang.c++,comp.os.msdos.djgpp Date: 26 Dec 2001 20:10:09 GMT Organization: aa Lines: 41 Sender: raf256 AT poczta DOT onet DOT pl@chello062179025129.chello.pl Message-ID: NNTP-Posting-Host: chello062179025129.chello.pl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Trace: news.onet.pl 1009397409 27707 62.179.25.129 (26 Dec 2001 20:10:09 GMT) X-Complaints-To: abuse AT onet DOT pl NNTP-Posting-Date: 26 Dec 2001 20:10:09 GMT User-Agent: Xnews/4.06.22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com (FUT warning), my questions are at end of post Hi, i want to write my own, very small and simple language. Why ? just for fun, and for learning purposes... just say that I have meany free time ;) I wanted to write something more like advanced pre-procesor for C++ (something like PHP is for HTML, except that PHP is server-side). I was thinking about something like i.e : int main() { int t[5]; {? loop(1,5) ?} t[i]=5 return } that will be converted by my pre-compiler to : int main() { int t[5]; for (int i=1; i<5; i++) t[i]=5 return } and then passed to gcc compiler Yes, I know that this example is very stupid and that this is not a practical ... From technical side I will write my own simple pre-compiler and call it gcc.exe and save real gcc.exe as _gcc.exe, then : 1) IDE will start gcc.exe test.cpp -o test.o 2) my gcc.exe will create _test.cpp that will have my scripts replaced with normal C++ statment 3) my gcc.exe will execute _gcc.exe _test.cpp test.o And now my questions : - should above method work for GCC 3.0.2 ? - with characters/symbols can I use ? is {? ?} good ? i was thinginh about matking my code with but I heard that newest GCC provides operator?> afair - can I use characters with code > 128 ? like 0xF0 etc ? -- Raf256 ,--, _ ,- _ _ _ |,-'`_|_|_ `_||_'|_' raf256 AT go2 DOT pl | `\|_| | |_,,_||_|