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

Lexical Analysis With Flex, for Flex 2.6.2: Start Conditions

westes.github.io · 1,366 words · saved by 1 readers

Lexical Analysis With Flex, for Flex 2.6.2: Start Conditions

Lexical Analysis With Flex, for Flex 2.6.2: Start Conditions Next: Multiple Input Buffers , Previous: Generated Scanner , Up: Top [ Contents ][ Index ] 10 Start Conditions flex provides a mechanism for conditionally activating rules. Any rule whose pattern is prefixed with ' <sc> ' will only be active when the scanner is in the start condition named sc . For example, <STRING>[^"]* { /* eat up the string body ... */ ... } will be active only when the scanner is in the STRING start condition, and <INITIAL,STRING,QUOTE>\. { /* handle an escape ... */ ... } will be active only when the current sta

Explore this link on the map →

related reading