Commit Graph

1788 Commits

Author SHA1 Message Date
parrt ad0239fb32 got all tests passing for js and changed order of test gen templates 2015-06-16 16:16:16 -07:00
parrt 3ddb25919d got all but 2 tests passing for py2! 2015-06-16 14:52:08 -07:00
parrt fcc15905cc got all but 4 tests passing for py3! 2015-06-16 13:33:58 -07:00
Terence Parr e3dded6ffc Merge pull request #893 from sharwell/test-generation
Completed test generation review
2015-06-16 09:59:24 -07:00
parrt 94bb7c0af3 Fixes #897. An empty rule matched at the start got an improper interval. updated documentation for getSourceInterval(), added unit tests. fixed logic for special cases. 2015-06-11 12:39:21 -07:00
parrt 9e5cda85ed Fixes #896. EOF was not counted in source interval. 2015-06-11 10:56:59 -07:00
parrt 2da28ee5b2 add test showing EOF leaf not in source interval of tree 2015-06-11 10:37:36 -07:00
Terence Parr 8cf7082e89 add legacy bild 2015-06-07 11:43:39 -07:00
Sam Harwell 6865fd6869 Remove files which were unintentionally duplicated in commit 0c7df237 2015-06-06 18:26:17 -05:00
Sam Harwell 4455d526fe Merge branch 'test-generation' into master 2015-06-06 18:15:53 -05:00
Sam Harwell 364d984437 Verify behavior of CompositeGrammars tests, and correct discrepancies 2015-06-06 16:21:19 -05:00
Sam Harwell 2f99ca7453 Add the ability to ignore tests on a per-target basis 2015-06-06 14:30:54 -05:00
Sam Harwell 80a881e132 Disable tests which rely on carriage returns in the input
For some reason, the test generator is not currently able to create string
literals containing these characters, so the tests will fail.
2015-06-06 14:30:17 -05:00
parrt dc445af663 Improve ParserInterpreter code simplicity 2015-06-05 16:14:20 -07:00
ericvergnaud 2e06ed8360 test added to check a user issue 2015-06-04 22:57:58 +08:00
parrt 6e3484a286 add old stuff back in. 2015-06-03 10:11:33 -07:00
parrt fec97f2938 tweaks 2015-06-03 09:58:22 -07:00
Terence Parr 6333674588 bild.py works to build c# now. 2015-06-02 20:06:35 -07:00
Terence Parr 29db15736d regen_test in bild.py works now 2015-06-02 17:24:06 -07:00
parrt 1323e30fa9 moving around templates, deleting old stuff. C# and Java runtime tests work using branch intermediate-test-generation of C#. bild doesn't quite test stuff correctly. 2015-06-02 16:00:45 -07:00
parrt 0c7df237db remove old java runtime test framework; reorg dirs. bild.py test_java appears to work. 2015-06-02 11:50:08 -07:00
parrt fafc7722c8 got bild to gen java tests (others commented out) and run those tests. rm'd .stg map in Index.stg. 2015-06-02 11:40:19 -07:00
Terence Parr e3325ab606 add cmd-line interface, add map in Index.stg to targets-specific templates. 2015-06-01 18:18:44 -07:00
parrt b15e66985e add main to test gen. 2015-06-01 14:40:22 -07:00
Sam Harwell 23cdb2ee8f Merge branch 'test-generation' into parrt_master 2015-06-01 14:45:54 -05:00
parrt d73e73a091 update comments, rename var. 2015-05-29 14:10:08 -07:00
Terence Parr 3e5fc6972a Fixes #773. rule[arg] in non-lr rule alt didnt translate right 2015-05-22 16:49:31 -07:00
Sam Harwell e248be48d1 Restore missing test testAlternateQuotes 2015-05-22 15:39:35 -05:00
Sam Harwell 131599af1a Fix incorrect interpretation of test ListLabelForClosureContext 2015-05-22 15:39:08 -05:00
Sam Harwell 3fe8bf3a10 Updated maven-surefire-plugin version 2015-05-22 15:32:57 -05:00
Sam Harwell c70c1baccf Disable annotation processors during testing for performance 2015-05-22 15:32:57 -05:00
Sam Harwell 8dce2d5fb5 TestCompositeParsers for Java is working 2015-05-22 15:32:56 -05:00
Sam Harwell 99dcf93206 TestFullContextParsing for Java is working 2015-05-22 15:32:54 -05:00
Sam Harwell 4fa9ed5a6b TestParserExec for Java is working 2015-05-22 15:32:54 -05:00
Sam Harwell c9c32c2c4f TestLeftRecursion for Java is working 2015-05-22 15:32:53 -05:00
Sam Harwell 6890d0bfdd TestLexerErrors for Java is working 2015-05-22 15:32:52 -05:00
Sam Harwell 9ce5efc570 TestListeners for Java is working 2015-05-22 15:32:51 -05:00
Sam Harwell 113b72da53 TestParserErrors for Java is working 2015-05-22 15:32:50 -05:00
Sam Harwell c11b384b1d TestSemPredEvalLexer for Java is working 2015-05-22 15:32:49 -05:00
Sam Harwell 98bb519f8a TestSemPredEvalParser for Java is working 2015-05-22 15:32:49 -05:00
Sam Harwell 42ba8c4530 TestLexerExec for Java is working 2015-05-22 15:32:48 -05:00
Sam Harwell 4ec94e0fae TestParseTrees for Java is working 2015-05-22 15:32:47 -05:00
Sam Harwell 039bd22b67 TestCompositeLexers for Java is working 2015-05-22 15:32:46 -05:00
Sam Harwell 90763e5ae2 Rewrite test generator as a Maven plugin that generates tests as part of the build
This commit only updates the "TestSets" collection of tests to use the new framework.
2015-05-22 15:32:06 -05:00
Terence Parr 8f2eca5ae1 added playground stuff 2015-05-22 12:03:28 -07:00
Terence Parr 4f0afdcf8e set error number so it does not conflict with Sam's fork. 2015-05-22 11:09:54 -07:00
Terence Parr 2ad9ff6b9d Fixes #823. Report unknown rule error in proper file. 2015-05-19 17:27:04 -07:00
Terence Parr b5907498de Fixes #822, Fixes #855. We didn't check for left-recursive rules that didn't follow pattern that would lead to error. added unit tests. Passes all tests. 2015-05-19 14:44:05 -07:00
Josh Chase 108f0557fa Add goto to reserved words for java. 2015-05-12 12:31:00 -07:00
Terence Parr db8de6214e IDE missed some changed files 2015-02-14 16:44:35 -08:00