Discussion
A lexeme is
Answer: D
Correct answer: the actual sequence of characters that forms an instance of a token
A lexeme is the concrete text in the source - count, 42, while. The token is the category it belongs to, such as identifier or number.
So count and total are two lexemes of the same token. The pattern is the rule describing which lexemes a token admits, and the attribute is the extra information carried along, typically a symbol table pointer. Four terms for four distinct things, and confusing lexeme with token is the usual slip.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development