GCC lexer

Roger.Gough Roger.Gough@ul.ie
Wed Sep 3 16:55:00 GMT 2003


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



More information about the Gcc mailing list