This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Gcc Lexer , "nospam"
- From: "Roger.Gough" <Roger dot Gough at ul dot ie>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Wed, 03 Sep 2003 17:33:34 +0100
- Subject: Gcc Lexer , "nospam"
Hi All,
I have modified the back end of gcc version 3.2.2 by rewriting the target
files to recognise my specific target architecture. I have done this and I
now want to modify the front end to an extent. I dont want GCC to pass
floating point numbers or doubles. In order to do this, I presume I need to
modify the lexer and maybe the parser.
I am aware that the lexer is contained in the file c-lex.c. I am looking to
find out has anybody modified this file to give an error anytime a float /
double is entered? What do I need to modify? Do I need to modify the parser
too? (My thinking on it is that the lexer should not create a token, hence I
should not have to touch the parser)
Thanks in advance for your help.
Regards
Roger