Commit Graph

449 Commits

Author SHA1 Message Date
Terence Parr 9446f5f4b1 Merge pull request #1589 from sharwell/missing-header
Add missing copyright header
2017-01-07 09:54:02 -08:00
Terence Parr b8e0d543e3 Merge pull request #1588 from sharwell/test-sources
Support using the Maven plugin to generate test sources
2017-01-07 09:53:41 -08:00
Sam Harwell 73cfd0592f Add missing copyright header 2017-01-07 11:20:10 -06:00
Sam Harwell 5d4efafe8e Support using the Maven plugin to generate test sources
Fixes #1579
2017-01-07 10:58:43 -06:00
Sam Harwell bcde6f923a Reset BufferedTokenStream.fetchedEOF when calling setTokenSource
Fixes #1584
2017-01-07 09:31:11 -06:00
Sam Harwell d0cd250634 Remove the shared visitor tests
These tests were modeled after the listener tests, but were not implemented
against the standard visitor API semantics. The tests only execute in the
Node.js target, and there is no straightforward way to implement these tests
across multiple targets. New tests which cover both the traversal behavior
and the runtime semantics are now available and should be implemented by
each target.
2017-01-05 21:48:44 -06:00
Sam Harwell 8becb01b06 Add remaining visitor tests for the Java runtime API 2017-01-05 12:54:26 -06:00
Sam Harwell 4cd6156e6b Add first visitor test for Java runtime API 2017-01-05 12:40:29 -06:00
Terence Parr b57843d983 Merge pull request #1546 from sharwell/fix-1545
Fix multiple problems with optional block bypass at end of rule
2016-12-27 21:47:12 -08:00
Sam Harwell 1d066e0a6b Fix test cases affected by recent changes
See #1545
2016-12-26 17:03:51 -06:00
Sam Harwell 33613657a5 Add regression tests for #1545 2016-12-23 16:09:24 -06:00
Mike Lischke e1fb0b68c7 C++ implementation of the LR-loop optimization. 2016-12-21 09:26:08 +01:00
Mike Lischke d324e9a46b Merge branch 'master' into LR-loop-fix 2016-12-19 16:48:10 +01:00
parrt 23313ee44e [maven-release-plugin] prepare for next development iteration 2016-12-15 14:25:41 -08:00
parrt aacd2a2c95 [maven-release-plugin] prepare release 4.6 2016-12-15 14:25:36 -08:00
Ivan Kochurkin bc7678011d Removed CharSetWithReversedRange from runtime testsuite. 2016-12-15 11:08:09 -08:00
parrt e13b008626 ah. cpp should not be in main list of tests. we'll test individually. 2016-12-14 16:20:48 -08:00
parrt 484dd62a39 Merge branch 'master' of github.com:antlr/antlr4 2016-12-14 13:33:00 -08:00
parrt a68fb3a183 convert runtime URL properly to file path. 2016-12-14 13:32:21 -08:00
Terence Parr fd3bd91828 Merge pull request #1508 from janyou/Fixes-1298
Fixes #1298 for Swift target
2016-12-14 13:25:27 -08:00
parrt 8918d0f953 more C++ debugging 2016-12-14 13:17:10 -08:00
parrt 3f00594313 add debugging to C++ 2016-12-14 11:22:47 -08:00
parrt e434560015 simplify runtime test pom, add swift back in. 2016-12-14 10:33:53 -08:00
janyou 0c835a248a Fixes #1298 2016-12-14 11:58:53 +08:00
parrt a3aa610e3d get recognizer name properly. Fixes #958 2016-12-13 11:05:39 -08:00
Mike Lischke 1eeaf20aa0 Initial implementation of the LR loop optimization in the C++ target.
There is an issue with the tests. Some hang forever. Need to investigate yet.
2016-12-13 17:45:23 +01:00
Terence Parr aea034cb45 Merge pull request #1493 from ericvergnaud/realign-csharp-runtime
Realign CSharp runtime with Java runtime, implements #1441
2016-12-12 16:54:36 -08:00
Eric Vergnaud caa581a9e0 success! 2016-12-12 23:52:09 +08:00
Eric Vergnaud 39de8896f8 Merge branch 'master' into realign-csharp-runtime 2016-12-12 21:54:26 +08:00
Eric Vergnaud 2fc33d97cd all tests pass! 2016-12-12 21:36:41 +08:00
Terence Parr 08a8e30864 Merge pull request #1470 from gaulouis/issue-1457
Issue 1457
2016-12-11 15:14:36 -08:00
Terence Parr 6a20919cb7 Merge pull request #1476 from renatahodovan/python-target-1472
Implement the fix of #1298 for Python targets.
2016-12-11 14:49:28 -08:00
Eric Vergnaud 0170c9a064 Good progress with parser 2016-12-12 02:00:09 +08:00
Eric Vergnaud 19d70cd777 TestLexerExec tests pass 2016-12-12 00:52:09 +08:00
parrt 87fbc682e3 strip more stuff we don't need 2016-12-10 15:58:28 -08:00
parrt 9cfb6890a5 add test scope to runtime test pom 2016-12-10 15:24:07 -08:00
parrt f2f54f0fd5 manually doing similar cleanup to https://github.com/antlr/antlr4/pull/1467 2016-12-10 15:19:45 -08:00
parrt 35e02997f2 improve test 2016-12-10 10:32:18 -08:00
parrt 2053143665 fix test so it correctly illustrates bug 1480, which was fixed apparently by https://github.com/antlr/antlr4/pull/1477 2016-12-10 10:03:44 -08:00
gaulouis e377b03506 Fix special template for org.antlr.v4.test.runtime.cpp.TestParseTrees 2016-12-10 04:59:41 +01:00
gaulouis 822e3762a0 Fix special template for tests 2016-12-10 04:42:09 +01:00
Renata Hodovan 58d51450d4 Implement the fix of #1298 for Python targets.
The patch adapts the fix in PR #1472 for Python targets.
2016-12-10 02:41:08 +01:00
parrt 85b609a951 make non-Java targets ignore new test 2016-12-09 14:07:18 -08:00
parrt eb8e2890c3 copyFrom copies error nodes over. Fixes #1298 2016-12-09 11:10:26 -08:00
parrt 53918ab41e add unit test for #1298 2016-12-09 10:19:31 -08:00
parrt 337adffa03 add expected token tests 2016-12-09 09:24:24 -08:00
parrt e46db41bbd move api lib test to runtime tests 2016-12-08 14:37:13 -08:00
parrt 2c99f187a0 make it read "Copyright (c) 2012-2016 The ANTLR Project" 2016-12-08 11:43:06 -08:00
parrt 1b1a9862c4 contributors->authors 2016-12-08 11:43:06 -08:00
parrt 61e8eba4fc fix typo 2016-12-08 11:43:06 -08:00
parrt 891915de84 Update copyright on java, xml files. Make BSD license conform to standard. 2016-12-08 11:40:30 -08:00
parrt cd4c9e8728 Add heartbeat thread to gen minimal output for travis, appveyor to avoid timeout. 2016-11-30 08:55:51 -08:00
parrt ca9628e1b1 turn on new perf tests for node,python as they take too long. 2016-11-30 08:55:33 -08:00
Eric Vergnaud 6e0d02a32d enable perf tests for python and javascript 2016-11-30 01:29:44 +08:00
parrt c182e3d5bf Fixes #994 poor performance in left-recursive expressions with very large expression input phrases; builds off of @sharwell solution that explicitly checks for key return states in expr rules 2016-11-24 13:07:19 -08:00
Terence Parr d09276d9fd Merge pull request #1395 from janyou/suppress-warnings
suppress swift test warnings
2016-11-22 13:24:59 -08:00
parrt 007a445be4 factor antlr() out of target test files into single spot 2016-11-22 11:58:23 -08:00
parrt 2cb02d9b43 add UTF-8 encoding on all antlr runs during test, fix appveyor 2016-11-22 10:00:28 -08:00
janyou 02055beb7e suppress swift test warnings 2016-11-22 21:30:55 +08:00
parrt 27a59988a2 take out flag for cmake as it doesn't work on linux. turn off C++ tests on mac 2016-11-20 20:28:12 -08:00
parrt 8e33fe49f5 turn out stderr output from clang++ compiles 2016-11-20 19:53:05 -08:00
parrt 66be087c38 merge old and new travis; improve so it runs C++ on osx; update BaseSwiftTest so it mirrors other targets; remove unneeded dep in pom to some json stuff 2016-11-20 19:50:54 -08:00
hanjoes e0b326677b Migrating the current Swift tests to the new testing framework. 2016-11-19 18:30:48 -08:00
hanjoes 49d9a39a79 in the middle of transition. 2016-11-19 18:30:48 -08:00
janyou d1dbfccdd6 Update Swift.test.stg 2016-11-19 18:30:48 -08:00
Ewan Mellor c024166dfa Fix path to Swift test files. 2016-11-19 18:30:48 -08:00
Ewan Mellor c611a64461 Remove commented-out debug code. 2016-11-19 18:30:48 -08:00
Ewan Mellor b52e8e46b2 Skip Swift tests on non-Mac platforms #1339
Swift tests depend on Xcode (via xcrun) so only run them on Macs.

This also bumps the maven-surefire-plugin version to 2.19.1, because
2.12.4 crashes when it sees an empty <include> block.
2016-11-19 18:30:48 -08:00
Ewan Mellor cf1487feb4 Replace init with init_ in DelegatorRuleOverridesLookaheadInDelegate.
init is the name of the instance initializer function in Swift, so generating
a grammar with that name causes problems, since it is generated into
function names on the parser.

I thought that renaming this would be a problem for other targets, but it
doesn't look like it, and actually the convention of using type_ rather than
type is already in use in this file.  Match this by adopting init_ as the
name, and regenerate the tests to match.

This was initially handled in https://github.com/janyou/ANTLR-Swift-Target
(using the name initIt instead of init).
2016-11-19 18:30:48 -08:00
Ewan Mellor ee469ae6d8 Regenerate the tests using mvn -Pgen generate-test-sources.
This adds all the new Swift tests.
2016-11-19 18:30:48 -08:00
Ewan Mellor 6d6327aa9d Move the Token declarations into an enum.
This avoids the naming conflict in the tests between the use of ATN as a
token name and as a type name.
2016-11-19 18:30:48 -08:00
Ewan Mellor cb1fcd9294 Implement TreeNodeWithAltNumField with a TODO.
I'm getting an error about this, but I don't know what it's supposed to do.
2016-11-19 18:30:48 -08:00
Ewan Mellor 66ac63877a Remove line that just looks completely bogus and which causes error messages. 2016-11-19 18:30:48 -08:00
Ewan Mellor 76cebe470d Update Swift.test.stg to include templates that were added on master since
the initial fork.
2016-11-19 18:30:48 -08:00
Ewan Mellor 5b37b3e236 Add OptionalValue declarations to each of the non-Swift targets, so that
this can be used in the test templates.

It is a no-op for every target other than Swift.

This pairs with cset 8251422b.
2016-11-19 18:30:48 -08:00
Ewan Mellor 6d5d1f1c23 Add build system changes needed for Swift backend. 2016-11-19 18:30:48 -08:00
Ewan Mellor c989064e32 Added (part of) a Swift backend.
This comes from https://github.com/janyou/ANTLR-Swift-Target and is
marked Copyright (c) 2016 janyou on top of the BSD license and Copyrights
for Terence Parr and Sam Harwell derived from the original ANTLR source.
2016-11-19 18:30:48 -08:00
parrt 79dbb8be96 small improvements to locating mono, node 2016-11-19 14:05:43 -08:00
parrt ae1bc4cafe add new test for all runtimes for issue #1295 2016-11-19 12:48:09 -08:00
parrt d0620a65f5 Merge branch 'issue#1295' of git://github.com/harriman/antlr4-updates into harriman-issue#1295 2016-11-19 12:05:32 -08:00
parrt 0ffb0310d2 rm dead code 2016-11-17 13:06:20 -08:00
parrt c5acec19db Move what used to be AfterGrammar template from a test in legacy runtime tests to tool test and remove from runtime test functionality. 2016-11-17 13:05:34 -08:00
parrt 02a35589fe check errors before output value in tests 2016-11-17 11:16:37 -08:00
Kurt Harriman ab8d17472f ANTLR4 generated incorrect code to access return value of recursive rule
Incorrect code was generated for $e.v in a rule like this one:

    e returns [int v] ::=
           INT       {$v = $INT.int;}
        | '(' e ')'  {$v = $e.v;}
        ;

After parsing "(99)" the result would have v == 0 instead of 99.
2016-11-16 22:38:11 -08:00
parrt 9675c822a9 update doc, add lock so antlr used atomically in unit tests so we can run in parallel. 2016-11-16 15:42:45 -08:00
Eric Vergnaud c35aec6ffe optionally delegate assertEquals to RuntimeTestSupport delegate, to enable target specific assertXxx behaviour 2016-11-17 01:11:24 +08:00
parrt d534efdf9a update doc on the runtime test mechanism. change the name of BaseDebugParserTestDescriptor to BaseDiagnosticParserTestDescriptor. 2016-11-15 14:25:28 -08:00
parrt a7ecf0332f rename the SingleTest class and and Java doc. make errors="" actually set to null to be more clear. 2016-11-15 13:42:57 -08:00
parrt 08e9776a4a shift template-based runtime test to legacy, new mechanism uses annotation to get multi-line strings into java. all tests pass minus about 15 in C# 2016-11-15 11:08:19 -08:00
parrt 7f16fe6201 alter test so it works with all targets 2016-11-07 15:02:57 -08:00
parrt b8ac1ebb3b unignore 2 tests for Go 2016-11-07 14:24:46 -08:00
parrt 5fc57fb0b2 Go needs to mimic other tests; regenerated. 2016-11-07 14:09:31 -08:00
parrt 01e3ffa7e5 optimize imports. 2016-11-07 14:01:10 -08:00
parrt b366a8405c fix some issues with tests after merge 2016-11-07 13:20:16 -08:00
parrt 3ee3093f88 fix some issues with tests after merge 2016-11-07 13:06:16 -08:00
Mike Lischke 92b032820e Merge branch 'master_upstream' 2016-11-07 11:19:12 +01:00
Mike Lischke 3b3fe3da57 Merge branch 'master_upstream'
Had to resolve a number of conflicts + added code required for the C++ target to generate header files, after the recent changes in the main repo.
2016-11-07 11:16:02 +01:00
parrt e5ec462e22 Fixes #1337. Add's sync() call back to LL(1) decisions; all targets updated (causing failed test in Go). Altered test for new output of errors. regen'd tests. 2016-11-06 09:45:40 -08:00
Mike Lischke cd5744b83f Fixed runtime tests after latest changes. 2016-11-06 11:32:28 +01:00
parrt 95c850e5f8 set version in prep for 4.6 2016-11-05 16:48:36 -07:00
parrt bcfa70c4e8 test templates were missing visitor-related templates. slight improvement to test generator. 2016-11-05 16:26:01 -07:00
Peter Boyer fc35818c52 Update import statements after merge 2016-11-05 16:36:53 -04:00
Peter Boyer 37631d1197 Regen runtime-testsuite 2016-11-05 16:27:12 -04:00
parrt 62badff2e8 Pull again from parrt's branch 'model-updates-for-new-targets'. tests pass. 2016-11-05 09:30:46 -07:00
parrt 6d022379bc Pull in parrt's branch 'model-updates-for-new-targets' which appears to have freshened some non Go stuff as well. Simplify Go filename construction. 2016-11-05 08:48:37 -07:00
Mike Lischke 5e9211b093 Re-enabled all tests again. 2016-11-05 16:35:34 +01:00
Mike Lischke e71e95080a Merge branch 'master_upstream'
Also updated the list of ignored tests in the Cpp.test.stg file (lke it is done for the other targets).
2016-11-05 15:07:59 +01:00
parrt 95dbf7b44b look for go in path during tests 2016-11-04 16:06:41 -07:00
Peter Boyer 2444386091 Remove JavaScript PORT_DEBUG, re-enable runtime tests for other language targets (#69)
* Re-enable runtime tests for other language targets

* Fix typo in js code

* Remove PORT_DEBUG statements

* Fix missing

* Fix testAltNum
2016-10-13 17:06:22 -04:00
parrt 4312b37828 pull test changes in 2016-10-13 10:58:19 -07:00
Christian Gudrian 29c1a9f222 removed reference to local node installation 2016-10-12 15:56:40 +02:00
Peter Boyer 42347c078b Fix merge failure 2016-10-12 09:53:43 -04:00
Peter Boyer 60662c4b70 Fix remaining tests (#64)
* Fix pred context typo

* Adjust array lengths

* PositionAdjustLexer test fix first steps

* allow virtual method calls from Lexer

* Hopefully fix issues with dup namedActions

* Make parser members

* Fix testParserProperty

* Fix LeftRecursion test failures
2016-10-12 09:49:42 -04:00
Christian Gudrian e5bab64e4b ignoring the visitors tests for Java, C# and Python
The template implementations for these languages is pending.
2016-10-06 22:53:25 +02:00
Christian Gudrian 4842e61a06 generated test sources 2016-10-06 22:53:16 +02:00
Christian Gudrian cb590334bb the visit methods now return a value 2016-10-06 22:52:19 +02:00
Christian Gudrian eb292adb18 implemented templates for the JavaScript visitors 2016-10-06 22:52:19 +02:00
Christian Gudrian a90c9d6669 started work at the Visitors templates by making a copy of the Listener templates 2016-10-06 22:46:54 +02:00
Peter Boyer 499d9d3f89 Print test arrays in java style (#50)
* Print string rule invocation stack array in java style

* regen runtime tests

* Another array print fix

* Fixes to print array of terminal nodes:

* regen tests
2016-10-05 14:52:42 -04:00
Mike Lischke a7b9499230 Code generation + Travis CI fixes.
- Had to adjust a comparison <= 0 to the new unsigned EOF.
- For testing: extended the runtime tests to all C++ tests.
- Install uuid-dev in Travis CI in order to be able to build the C++ runtime.
2016-10-03 11:25:02 +02:00
Mike Lischke 8280beb564 Refactoring of further int values, mostly converting them to size_t.
- Switched most symbolic signed constants to unsigned variants. Redefined EOF in particular to become (size)-1, to avoid having to use signed token type values.
- Introduced INVALID_INDEX for all previous -1 values to indicate e.g. not found indexes etc.
- Added 2 helpers to convert between symbolic and numeric form (mostly for intervals and toString()).
- Removed many no longer needed type casts to size_t.
- Updated templates for these changes.
- Limited runtime tests to C++ tests only, to see how Travis CI copes with that.
2016-10-02 16:51:57 +02:00
Mike Lischke de4df872fe Updates to get all tests green again.
- Had to take back some of the message beautifying, as this won't match expected runtime test output.
- Updated C++ test stg file for recent runtime changes. Regenerated tests (only one file changed actually).
- Reworked C++ test preparation. The C++ runtime is now built on first invocation of a test. This works only on Linux + OSX/macOS. Windows needs extra handling.
2016-10-01 12:43:31 +02:00
runner 1b2b954500 auto locate go path on the windows 2016-10-01 11:45:28 +08:00
Mike Lischke 3b98c1136e Merge branch 'master_upstream' 2016-09-25 11:31:51 +02:00
Andreas Jonson 6e780c90bb update the runtime paths to work in windows
the old paths contained a / at the beginning of the path e.g. "/C:/" but the expected path is "C:/" and due to this all test for the targets javascript, python and c# failed on windows.
2016-08-19 23:27:08 +02:00
Peter Boyer 28e013e687 Merge pull request #37 from willfaught/elist
Fix LRWithLabelsListener to call EList.String
2016-07-18 09:53:26 -04:00
Peter Boyer faeb00a682 Merge pull request #38 from willfaught/strings
Fix ParserErrors.testContextListGetters to print strings
2016-07-18 09:52:28 -04:00
Will Faught 5feca3e334 Fix ParserErrors.testContextListGetters to print strings 2016-07-06 10:57:37 -07:00
Will Faught edbf3225ef Fix LRWithLabelsListener to call EList.String 2016-07-06 10:19:25 -07:00
Will Faught a05dea54ec Fix test case build errors 2016-07-06 09:02:42 -07:00
Mike Lischke f6515e5aaf A few adjustments in doc + runtime tests for the changed library name + input stream handling. 2016-06-21 17:25:39 +02:00
Mike Lischke 3b5b400d03 A few fixes for the previous listener change.
Also fixed runtime tests again.
2016-06-17 11:27:52 +02:00
Mike Lischke 4a7ec859aa Simplified parse tree listener handling.
No need to use shared_ptr for management. Listeners are, like the other main classes (parser, lexer, input stream etc.) provided by the application and hence managed there.
2016-06-17 10:22:19 +02:00
Will Faught c9ac8a6c61 Generate Go tests 2016-06-16 23:29:10 -07:00
Will Faught c72ef6383e Clean up Go test templates 2016-06-16 23:27:47 -07:00
Will Faught 80f99b50da Fix Property calls in generated Go tests 2016-06-16 23:20:52 -07:00
Will Faught 4e560db250 Fix SetErrorHandler and NewBailErrorStrategy calls in generated Go tests 2016-06-16 23:20:52 -07:00
Will Faught 40b7e1bf12 Fix parser tokens in generated Go tests 2016-06-16 23:20:45 -07:00
Mike Lischke dd48c0fbd5 A few final touches to make runtime tests passing. 2016-06-16 11:20:42 +02:00
Mike Lischke 4a8010b4eb Revert "A few more places that no longer pass a shared_ptr around."
This reverts commit 728af59528.
2016-06-15 13:30:37 +02:00
Mike Lischke 728af59528 A few more places that no longer pass a shared_ptr around. 2016-06-14 15:17:23 +02:00
Mike Lischke b9c28d8c9c Signficantly simplified Token handling.
In order to lower the overhead when passing around Token instances via smart pointers and because the ownership is clear (token streams own them), these instances can be passed as raw pointers.
2016-06-13 13:12:02 +02:00
Mike Lischke b8fcb5f30d More performance increase for C++ target (25% now).
All shared_ptr<> now use const& for function parameters to avoid constant copies + locks. Ownership and lifetime control is still ensured by the owning containers. Code templates have been updated as well.
2016-06-09 12:02:30 +02:00
Mike Lischke a4bc611fd5 Changed namespaces + fixed runtime tests.
- Changed namespace chain (org::antlr::v4::runtime) to just antlr4 in all files.
- Fixed runtime tests for that.
- Added conversion of the xpath code, which compiles now (no tests, tho, as there are runtime tests for it).
- Removed TestRig stuff. That doesn't work in C++.
2016-06-06 15:55:27 +02:00
Wolfgang Johannes Kohnen f8f872bfc9 runtime-testsuite/Go: fix recursion 2016-06-06 08:12:50 +02:00
Wolfgang Johannes Kohnen bf7cc8ce80 runtime-testsuite/Go: Cache Go test environment and make it self-contained.
* "go install" the Go runtime inside a temporary GOPATH directory.
 * Remove unnecessary GOPATH variable elements.
 * Change some instances of stringly typing to strongly typing.
 * Remove a few pointless indirections.
 * Cleanup erase helper methods, make eraseFiles (eraseDirectory)
   static and recursive (used by @AfterClass as well).
 * Other minor cleanups.
 * => this works on travis now and is about twice as fast! :)
2016-06-05 21:52:53 +02:00
Mike Lischke 73248ac2e3 Some changes in the C++ target doc + a some template fixes.
- Avoiding double semicolons is tricky with the kind of rule nesting. Previous changes for that caused the tests to break as there were semicolons missing then.
- VS complained about the shift code generated using 1L as base, which is signed. Changed that to 1ULL, which is what is actually intended.
- Reverted the change to avoid a warning in RuleSempredFunction() in Cpp.stg as the fix didn't work 100%. We need a different solution.
2016-06-05 14:35:11 +02:00
Mike Lischke ac664a91b8 A few more fixes. 2016-06-02 17:32:19 +02:00
Mike Lischke b7ade0ade1 TestParseTrees + TestSemPredEvalLexer C++ test groups pass now. 2016-06-02 12:22:24 +02:00
Mike Lischke be2e71130a TestListeners C++ tests pass now.
- Needed a few adjustments in the test templates for this, which required to change target test templates for all other languages too.
2016-06-02 10:18:19 +02:00
Mike Lischke 28ccc4962b TestParseTrees passes now. 2016-06-01 15:20:11 +02:00
Mike Lischke 6bf1193839 All tests of TestLeftRecursion.java now pass.
- Fixed all disabled tests and enabled them.
- Some more adjustments of the test template + target template was needed.
- Worked on semicolon usage in Cpp.stg to avoid double semicolons. Might need more work, tho.
2016-06-01 12:08:13 +02:00
Mike Lischke 86014ac3a6 TestParserExec tests pass now.
- A few more adjustments to make this test group pass.
- Fixed a few issues in C++ runtime as well.
2016-06-01 10:22:48 +02:00
Mike Lischke 814a1821be TestParserErrors passes now.
Fixed a bug in the Cpp.stg file where more input was consumed than should be.
2016-05-30 16:27:12 +02:00
Mike Lischke 08f844af0e Fixed 2 problems found by runtime tests.
- TestLexerExce group passes now.
- Reverted wrong removal of action text output that prevent named actions from showing up properly.
2016-05-29 16:47:51 +02:00
Mike Lischke 815bb95982 TestLeftRecursion passes, but with some disabled tests.
There are a number of disabled tests that need extra work (all because of target specific action code).
2016-05-29 12:17:29 +02:00
Wolfgang Johannes Kohnen 4fd4e51810 runtime-testsuite/go: Make path construction slightly more robust.
* also piggy back a typo fix.
2016-05-28 11:15:14 +02:00
Wolfgang Johannes Kohnen f2dc9f476b runtime-testsuite/Go: timeout tests, honour GOROOT 2016-05-27 22:56:56 +02:00
Mike Lischke a0665677c1 Lots of fine tuning to get more tests passing. 2016-05-27 22:38:42 +02:00
Will Faught a0314a8946 Change File.separator to File.pathSeparator 2016-05-27 11:26:38 -07:00
Will Faught 7e8fb7a7f3 Handle empty current GOPATH when setting GOPATH 2016-05-27 11:05:16 -07:00
Will Faught 9562d87d49 Change willfaught/antlr4 to pboyer/antlr4 2016-05-26 23:43:43 -07:00
Will Faught 3434e802be Fix test GOPATH env var to include current GOPATH
Also:

- Change "antlr4" imports to "github.com/antlr/antlr4/runtime/Go/antlr"
- Remove parser prefix from Property and pred calls
- Change TParser.X tokens to TParserX
2016-05-26 23:37:25 -07:00
Will Faught 34877767c1 Change package alias antlr4 to antlr 2016-05-26 23:31:19 -07:00
Mike Lischke 657be5f1ac Fixed generation code for lexer tests. 2016-05-25 13:36:52 +02:00
David Sisson b1b8de748a Fixed a number of issues in the generated tests. Many more to go. 2016-05-24 19:17:50 -07:00
David Sisson bebb63a126 Updated generation a bit. 2016-05-24 11:44:43 -07:00
David Sisson 3e21e0b6e3 Regenerate all of the tests with the latest test generation template. 2016-05-24 08:30:50 -07:00
David Sisson b920bb7011 Added run support to the test runner. 2016-05-24 02:00:15 -07:00
David Sisson b3a17b00a2 Set up so we compile link all of the files in the test directory. Does not run the binary afterwards, but that's because there's still a print being generated somewhere (and I have no idea where it's coming from). 2016-05-24 01:44:17 -07:00
Wolfgang Johannes Kohnen b6f384bf3c runtime test/Go: Use $PATH and $GOROOT to find go executable. 2016-05-23 11:11:53 +02:00
Mike Lischke 7d69f24201 Small corrections to make the test module compile. 2016-05-22 19:15:36 +02:00
David Sisson c8e60b7fe0 Down to one issue -- tree::ParseTree and tree:RuleNode aren't related as they are in some tests. Need to find either the right relationship or come up with an alternative test. 2016-05-21 15:59:22 -07:00
David Sisson ae4dcbabbd properly escape templates 2016-05-20 22:15:48 -07:00
David Sisson 6aa03ed9a2 attempts compilation 2016-05-20 22:14:28 -07:00
David Sisson 9920efd353 More updates to the C++ test runner. 2016-05-09 21:45:14 -07:00
David Sisson db6f3c983d Added the start of linker support. 2016-05-09 20:53:33 -07:00
David Sisson a212755734 Cleaned up the test runner. 2016-05-08 21:27:40 -07:00
David Sisson cbe9c2f1f7 Returned other tests to active duty. 2016-05-06 20:19:48 -07:00
David Sisson eddf2a1b36 updating BaseCppTest.java 2016-05-06 20:07:40 -07:00
David Sisson b976a4942d fix which tests to run for cpp 2016-05-06 19:48:57 -07:00
David Sisson 358bde8844 Updated runtime tests with updated generation templates. 2016-05-06 19:33:13 -07:00
David Sisson 00083a77e8 Adding missing file. 2016-05-05 22:09:58 -07:00
David Sisson e4fd106948 update packages 2016-05-05 22:07:57 -07:00
David Sisson 43dc1df1f2 More needed files. 2016-05-05 22:04:47 -07:00
David Sisson f018236ad7 Added minimum set of files. 2016-05-05 21:56:13 -07:00
David Sisson 6433481bc7 Added minimum set of files. 2016-05-05 21:56:07 -07:00
Mike Lischke 5489ad2ac6 A few changes in test files after running the test generator (mostly reordered tests). 2016-05-04 10:14:24 +02:00
Mike Lischke 0e5b501aa8 Merge branch 'feature/templates' into feature/templates-org 2016-04-23 16:42:26 +02:00
parrt b92f22769e [maven-release-plugin] prepare for next development iteration 2016-03-30 16:25:49 -07:00
parrt 567fcc6311 [maven-release-plugin] prepare release antlr4-master-4.5.3 2016-03-30 16:25:45 -07:00
parrt 9352c9cf6d force 3.5 python to see if we can get travis to work. 2016-03-30 11:32:40 -07:00
parrt 9e98714a1d Add ability to set parse tree internal node super class with option contextSuperClass. Provide impl in Java target that has altNum backing field. Add test across targets to set/get alt num. Fixes #1152. 2016-03-30 11:00:47 -07:00
parrt f36e77fc2a use latest python 2016-03-29 15:33:22 -07:00
Michael Peyton Jones b1b2579621 Add tests for alternative precedence in left-recursive transformation 2016-02-22 12:49:00 +00:00
parrt 08f3ad798e [maven-release-plugin] prepare for next development iteration 2016-01-29 15:29:01 -08:00
parrt c5a296596d [maven-release-plugin] prepare release 4.5.2 2016-01-29 15:28:57 -08:00
parrt fa6f674e33 [maven-release-plugin] rollback the release of 4.5.2 2016-01-29 15:27:40 -08:00
parrt 009f3cac3a [maven-release-plugin] prepare release 4.5.2 2016-01-29 15:27:19 -08:00
parrt 6b31ceaa9d [maven-release-plugin] rollback the release of 4.5.2 2016-01-29 15:26:02 -08:00