Is there any parser autogeneration tool that can cope with c++11's grammer? Including weird edge cases like template vs. comparison depending on previously declared types?
The first, you'll at least need something capable of parsing context-free languages. My recommendation is to start here[1].