Discussion:
Antlr3 C++ code generation hangs
Sebastien Van Cauwenberghe
2012-11-25 13:28:54 UTC
Permalink
Hi All,

I'm generating a parser in C++ and I don't understand why with this grammar,
Antlr gets stuck... It can run for 20 min 100% cpu without generating
anything.

https://github.com/sebx86/Ccc/blob/master/ccc.g
Has someone an idea ?

Thanks in advance for your support
Cheers

Sébastien

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
Ivan Brezina
2012-11-26 19:37:55 UTC
Permalink
Post by Sebastien Van Cauwenberghe
Hi All,
I'm generating a parser in C++ and I don't understand why with this grammar,
Antlr gets stuck... It can run for 20 min 100% cpu without generating
anything.
https://github.com/sebx86/Ccc/blob/master/ccc.g
Has someone an idea ?
Thanks in advance for your support
Cheers
Sébastien
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
Are you using the multithreaded option?
ANTLR sometimes hungs when is it set on. Try to omit it.

Ivan


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
Loading...