This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]