Commit Graph

249 Commits

Author SHA1 Message Date
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