Commit Graph

3237 Commits

Author SHA1 Message Date
Terence Parr 7e8a7bac84 Improve tree highlighting 2015-06-18 10:33:33 -07:00
Terence Parr 4c063ee769 Merge pull request #915 from parrt/master
Small refactoring for flexibility of subclasses (token stream, tree view)
2015-06-18 10:25:07 -07:00
parrt dc150f4aa2 refactor tokens.size() to be size() 2015-06-18 10:23:12 -07:00
parrt 0e692ed436 allow users to override the TreeLayoutAdaptor 2015-06-18 10:23:12 -07:00
Terence Parr a319ea4b3e Merge pull request #914 from parrt/add-heavy-parser-interpreter
add new interpreter that knows how to track alternatives in rule nodes
2015-06-18 10:01:27 -07:00
Terence Parr 1c19c70307 convert map to int[][] 2015-06-18 10:00:32 -07:00
Terence Parr 204cf12e86 mv latch check for speed. 2015-06-18 09:56:53 -07:00
parrt 11726e072e update the comments. 2015-06-17 18:30:29 -07:00
parrt 94bef386cb add new interpreter that knows how to track alternatives in rule nodes; some cleanup and improvement to other interpreter 2015-06-17 18:06:22 -07:00
parrt 4bee04f114 I do not properly add the unit test 2015-06-17 17:45:14 -07:00
Terence Parr 591dca76af Merge pull request #912 from parrt/add-TokenMismatch2-test-using-new-mechanism
add new unit test TokenMismatch2
2015-06-16 16:45:01 -07:00
parrt 441587e859 add new unit test corresponding to 2e06ed8360 2015-06-16 16:44:02 -07:00
Terence Parr 0ff58068f7 Merge pull request #911 from parrt/mv-javascript-to-new-test-gen
got all tests passing for js and changed order of test gen templates
2015-06-16 16:25:40 -07:00
parrt ad0239fb32 got all tests passing for js and changed order of test gen templates 2015-06-16 16:16:16 -07:00
Terence Parr 21740a48b6 Merge pull request #910 from parrt/mv-python2-to-new-test-gen
got all but 2 tests passing for py2!
2015-06-16 14:53:48 -07:00
parrt 3ddb25919d got all but 2 tests passing for py2! 2015-06-16 14:52:08 -07:00
Terence Parr 7d36891c82 Merge pull request #906 from parrt/mv-python3-to-new-test-gen
got all but 4 tests passing for py3!
2015-06-16 13:34:49 -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
Terence Parr 235d1a9216 Merge pull request #902 from parrt/add-error-nodes
Add error nodes
2015-06-12 17:45:07 -07:00
Terence Parr d2b86997d1 Merge pull request #901 from parrt/master
LookaheadEventInfo now tracks alt taken by decision.
2015-06-12 17:44:58 -07:00
parrt 12a36946e8 actually just show text of erroneous token in red in treeviewer. 2015-06-12 17:42:06 -07:00
parrt 8524630c03 show <mismatched actualtokentext> not one of the expected. 2015-06-12 17:42:06 -07:00
Terence Parr 4c132b8a31 Fixes #899. Add error nodes to interpret or parse trees.
Conflicts:
	runtime/Java/src/org/antlr/v4/runtime/ParserInterpreter.java
2015-06-12 17:41:55 -07:00
parrt dfeaadaa26 LookaheadEventInfo now tracks alt taken by decision. 2015-06-12 17:17:12 -07:00
Terence Parr a3ddd82950 Merge pull request #898 from parrt/check-eof-in-tree
Check eof in tree
2015-06-11 13:13:19 -07:00
parrt ed41558dc4 comment tweak. 2015-06-11 13:12:25 -07:00
parrt b8035d36d0 small speed tweak 2015-06-11 12:56:29 -07:00
parrt a28b299dd4 reset new boolean 2015-06-11 12:54:13 -07:00
parrt 81e2a654d7 clean up per Sam 2015-06-11 12:52:48 -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 6159947d8f Add missing comments to FullContextParsing tests 2015-06-06 16:21:52 -05:00
Sam Harwell 364d984437 Verify behavior of CompositeGrammars tests, and correct discrepancies 2015-06-06 16:21:19 -05:00
Sam Harwell 990fd9d811 Verify behavior of LeftRecursion tests, and correct discrepancies 2015-06-06 15:37:36 -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
Sam Harwell 12efe2f83b Verify behavior of lexer tests, and correct errors 2015-06-06 14:29:07 -05:00
Terence Parr 37fb7a71fb Merge pull request #891 from parrt/master
improve gitignore
2015-06-06 09:30:22 -07:00
Terence Parr 24ae4b9bcb improve gitignore 2015-06-06 09:29:32 -07:00
Terence Parr d44751173b Merge pull request #889 from parrt/track-altnum-in-interp
Improve ParserInterpreter code simplicity
2015-06-05 16:15:36 -07:00
parrt dc445af663 Improve ParserInterpreter code simplicity 2015-06-05 16:14:20 -07:00
parrt b58eb66774 Merge branch 'master' of github.com:antlr/antlr4 2015-06-05 15:57:35 -07:00
parrt cf473b469c put /gen in gitignore 2015-06-05 15:57:19 -07:00
ericvergnaud 2e06ed8360 test added to check a user issue 2015-06-04 22:57:58 +08:00
parrt 3f9cb4b12f make more flexible by allowing subclass to spec test templates resource dir 2015-06-03 11:11:52 -07:00