Re: maaany output
Seth <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 18-07-17 10:24, Jens Kallup wrote:
> I can't check against other, because:
> local, i get errors, and on culiru a timeout.
You can read the errors. That's a start.
And if you don't understand, you can always begin by reducing the amount
of unneeded code, and comment out things until it starts compiling.
There's not even a sample input?
Too many things can't possibly compile. And then there is the number of
issues (like mutual implicit conversions leading to inevitable infinite
recursion in ast_print (ast_print doesn't know how to print `nil` or
`std::string`); like the global variable `dast` that somehow gets set
only from inside ast_print, but ironically is also passed to ast_print
exclusively; the fact that you litter the grammer with `*comment` when
all you really want (likely) is to always ignore comment tokens; The
fact that you write `"qi::_1"` when likely you mean either `qi::_1` or
`std::string("something")`; the fact that there is a ~80 line `mystream`
class floating around in that mess without any particular purpose; ditto
for `ast_struct`; not even mentioning `std::cout <<
"lllllllllllllllllllllllllll";` randomly in a function; ).
You could state what your goal is, and we could start from scratch.
$0.02
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot