forked from jasder/antlr
7f8ad7bd2d
- Exceptions are now consistently thrown by value and captured by reference. C++11 exception_ptr and nested_exception are used when exception references are neeeded or when implementing the equivalent of Java's nesting. - The is<> helper didn't handle properly (const) references, which is now explicitly handled. Added new unit tests for that. - Fixed a number of places where a catch all was used to implement a "finally" (which hides exceptions). - Changed exceptions to hold (temporary) raw pointers instead of shared pointers, as otherwise it is tried to free wrapped pointers which might just be references to static objects. Might later be updated again when we continue with removing raw pointers. - Some smaller fixes. - The generated simple parser now runs through without any error (yet, it doesn't do anything useful). - ANTLR C++ target template: - Added getListener and genVisitor bool members to ANTLR's LexerFile + ParserFile classes, so can use them in the template. - Made addition of listener #include dependent on the new genListener member, which allows to run parser generation without listeners/visitors. |
||
---|---|---|
.. | ||
resources/org/antlr/v4/tool/templates | ||
src/org/antlr/v4 | ||
test/org/antlr/v4/test | ||
MIGRATION.txt | ||
nb-configuration.xml | ||
pom.xml |