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

Lexical Analysis With Flex, for Flex 2.6.2: Actions

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

Lexical Analysis With Flex, for Flex 2.6.2: Actions

Lexical Analysis With Flex, for Flex 2.6.2: Actions Next: Generated Scanner , Previous: Matching , Up: Top [ Contents ][ Index ] 8 Actions Each pattern in a rule has a corresponding action , which can be any arbitrary C statement. The pattern ends at the first non-escaped whitespace character; the remainder of the line is its action. If the action is empty, then when the pattern is matched the input token is simply discarded. For example, here is the specification for a program which deletes all occurrences of ' zap me ' from its input: %% "zap me" This example will copy all other characters i

Explore this link on the map →

related reading