Handling space in lexer.
by ajiten from LinuxQuestions.org on (#6GFQ4)
It has been stated on page #25, in the book on Compiler design in C, by Allen Holub; that need to seperate symbols (NT, T) on the rhs with blanks.
Else, if the blank spaces were to be included, then need to have the requisite number of blank spaces as say, " " for single blank space.
Want to know how the code for the same is to be implemented in C code, or is handled in lex.
In the code provided by @NevemTeve here, in the integrated lexer, could not find the appropriate code for seperating based on space.
Attached Thumbnails
Else, if the blank spaces were to be included, then need to have the requisite number of blank spaces as say, " " for single blank space.
Want to know how the code for the same is to be implemented in C code, or is handled in lex.
In the code provided by @NevemTeve here, in the integrated lexer, could not find the appropriate code for seperating based on space.
Attached Thumbnails