Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flex: input rules are too complicated (>= 32000 NFA states)" #572

Open
nIxedoahz opened this issue Jun 16, 2023 · 3 comments
Open

flex: input rules are too complicated (>= 32000 NFA states)" #572

nIxedoahz opened this issue Jun 16, 2023 · 3 comments

Comments

@nIxedoahz
Copy link

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

@Mightyjo
Copy link
Contributor

That's a fun error. Can you share your input file?

@nIxedoahz
Copy link
Author

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

@Mightyjo
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants