Some smaller fixes for Windows.
This commit is contained in:
parent
a4bc611fd5
commit
ff129beadf
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue