Next: How can I have multiple input sources feed into the same scanner at the same time?, Previous: Flex is not matching my patterns in the same order that I defined them., Up: FAQ [Contents][Index]
Most likely, you have (in error) placed the opening ‘{’ of the action block on a different line than the rule, e.g.,
^(foo|bar) { <<<--- WRONG! }
flex
requires that the opening ‘{’ of an action associated with a rule
begin on the same line as does the rule. You need instead to write your rules
as follows:
^(foo|bar) { // CORRECT! }