flex
flex copied to clipboard
flex: input rules are too complicated (>= 32000 NFA states)"
flex version 2.6.4
Error reported as follows
flex: input rules are too complicated (>= 32000 NFA states)"
How do I solve this problem without generating cpp files
That's a fun error. Can you share your input file?
That's a fun error. Can you share your input file?
#define MAXIMUM_MNS 31999 If I modify this macro to: #define MAXIMUM_MNS 319999 Will it cause any problems
It's a performance parameter for the Flex generation process. Increasing it might let Flex exhaust your system memory or make it take a very long time to produce your scanner.
It's hard to predict whether the generated scanner would be noticably slow or unusually large.
Did you try it? If so, what happened?