Some smaller fixes for Windows.

This commit is contained in:
Mike Lischke 2016-06-06 15:58:07 +02:00
parent a4bc611fd5
commit ff129beadf
3 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,6 @@ Edit the repository looking for 4.5 or whatever and update it. Bump version in t
* runtime/JavaScript/src/antlr4/package.json
* runtime/JavaScript/src/antlr4/Recognizer.js
* tool/src/org/antlr/v4/codegen/target/CppTarget.java
* tool/src/org/antlr/v4/codegen/target/CppTarget.java
* tool/src/org/antlr/v4/codegen/target/CSharpTarget.java
* tool/src/org/antlr/v4/codegen/target/JavaScriptTarget.java
* tool/src/org/antlr/v4/codegen/target/Python2Target.java

View File

@ -29,6 +29,7 @@ int main(int argc, const char * argv[]) {
std::wstring s = antlrcpp::s2ws(tree->toStringTree(&parser)) + L"\n";
OutputDebugString(s.data());
std::wcout << "Parse Tree: " << s << std::endl;
return 0;
}

View File

@ -74,7 +74,7 @@ Ref<Token> BailErrorStrategy::recoverInline(Parser *recognizer) {
throw e;
} catch (InputMismatchException &inner) {
#if defined(_MSC_FULL_VER) && _MSC_FULL_VER < 190023026
throw throw ParseCancellationException(inner.what());
throw ParseCancellationException(inner.what());
#else
std::throw_with_nested(ParseCancellationException());
#endif