All Questions
3 questions
0
votes
0
answers
94
views
Unexpected character JFLEX
Hello i was watching a tutorial on youtube. It was the start of tutorial but when i tried to wrote the code and run this flex.l file. The output show unexpected character [a-z] {printf("Single ...
1
vote
1
answer
349
views
If lexer can pass the bad token to the parser?
During the lexical analysis phase of compiler if a bad token is encountered then the lexer will go into the error recovery mode and, suppose say, it discards the token until the next semicolon is seen ...
0
votes
3
answers
747
views
Can lexical analyzer stage check grammar rules during compilation?
sorry for such silly question, but I had argument with my pals about lexical analyze and we've decided to ask community.
The question is:
Whether the statement "int some_variable = ;" would be ...