retagged by
1,433 views

1 Answer

Best answer
5 votes
5 votes
-    Token: Basic units of a code eg: keyword, operator, and identifier.
-    Pattern: Rule that specifies a token.
-    Lexeme: A set of characters that matches a pattern of a token.
Eg 1: “shiva” is a lexeme that matches a pattern of ‘identifier’ token.

Eg2: "continue” is a lexeme that matches a pattern of ‘keyword’ token.
selected by

Related questions

2 votes
2 votes
2 answers
3
Na462 asked Nov 7, 2018
3,600 views
0 votes
0 votes
0 answers
4
syncronizing asked Sep 22, 2018
398 views
Which of the following is not a token of c -program?A. 1.02e + 2B. # defineC. 123.33D. MAXplease explain why?