Differentiate tokens, patterns, and lexeme.

(A.U May/June 2010) (A.U Nov/Dec 2012)
 Tokens- Sequence of characters that have a collective meaning.
 Patterns- There is a set of strings in the input for which the same token is produced as output. This
set of strings is described by a rule called a pattern associated with the token
 Lexeme-A sequence of characters in the source program that is matched by the pattern for a
token.

0 comments:

Post a Comment

 
page