Implementing multi-line comments, other characters..

holychapin@hotmail.com
28 Jun 2002 18:42:30 -0400

          From comp.compilers

Related articles
Implementing multi-line comments, other characters.. holychapin@hotmail.com (2002-06-28)
Re: Implementing multi-line comments, other characters.. nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-07-02)
Re: Implementing multi-line comments, other characters.. Marko.Makela@HUT.FI (Marko =?ISO-8859-1?Q?M=E4kel=E4?=) (2002-07-02)
| List of all articles for this month |
From: holychapin@hotmail.com
Newsgroups: comp.compilers
Date: 28 Jun 2002 18:42:30 -0400
Organization: http://groups.google.com/
Keywords: question
Posted-Date: 28 Jun 2002 18:42:30 EDT

Hello,


I'm developing a BASIC compiler in C++ and in my reading object
(Reading.h), it checks for the next word to see if it is an
identifier, white space, etc.


I'm trying to implement characters like ņ to be used. I put that under
identifier, but still if you do something in let's say John.bas


Hi Seņor!


It'll give an error (implemented in my errors object). What the
console box does is show a + over a - instead of ņ. Then, it says +
over - is not an identifier or anything else, so it is a bad
name/type.


Also, I want to allow multi-line comments to be used in a BASIC file,
but I'm not sure how to implement this. If you need to see some code
to understand, I can provide it.


Thanks,
Jared


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.