Spirit-X3 | Boost 1.59 | Compilation never finishes for a recursive grammar
Arun Muralidharan <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Folks, I have posted the question in SO as well ( http://stackoverflow.com/questions/43526708/optimizing-the-grammar ), but I believe I have better chance of getting an answer to my query here. <Reposting the question here> I am working on creating an xpath2.0 parser as per the RFC. It's basically a subproject of another project that I am working on. After some initial success, I did the mistake of writing a bunch of grammar rules and AST instead of compiling and testing it at every point. After that I basically had a novel of template error messages to read (my fault actually). I have then then tried to work my way up by trying to compile and test bits and pieces of the grammar rules individually and now I am stuck with the compilation process never ending. I am attaching two files along with this post: 1. All the code in a single cpp file. 2. Broken up the code in multiple files as suggested before in the mailing list. (as per calc9 example) Compiler - clang 3.8 on Mac (i7 processor 8 GB RAM) template-depth - 1024 Boost Version - 1.59 rec_ex_orig.cc <http://boost.2283326.n4.nabble.com/file/n4693813/rec_ex_orig.cc> rec_ex.tar <http://boost.2283326.n4.nabble.com/file/n4693813/rec_ex.tar> -- View this message in context: http://boost.2283326.n4.nabble.com/Spirit-X3-Boost-1-59-Compilation-never-finishes-for-a-recursive-grammar-tp4693813.html Sent from the spirit-general mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot