flâneur — a map of the web's best reading

Lexical Analysis With Flex, for Flex 2.6.2: Matching

westes.github.io · 556 words · saved by 1 readers

Lexical Analysis With Flex, for Flex 2.6.2: Matching

Lexical Analysis With Flex, for Flex 2.6.2: Matching Next: Actions , Previous: Patterns , Up: Top [ Contents ][ Index ] 7 How the Input Is Matched When the generated scanner is run, it analyzes its input looking for strings which match any of its patterns. If it finds more than one match, it takes the one matching the most text (for trailing context rules, this includes the length of the trailing part, even though it will then be returned to the input). If it finds two or more matches of the same length, the rule listed first in the flex input file is chosen. Once the match is determined, the

Explore this link on the map →

related reading