Unit 1 Part 3
Unit 1 Part 3
Lex automatically reads one character ahead of the last character that forms the
selected lexeme, but consumes only the part that matches.
● Slash in a pattern indicates the end of the part of the pattern that matches the
lexeme.
● What follows / is additional pattern that must be matched before we can
decide that the token in question was seen, but what matches this second
pattern is not part of the lexeme.
THANK YOU