Commit Graph

4686 Commits

Author SHA1 Message Date
Sebastian Kürten f134ef930f Fix the expected error message in test 2016-11-01 13:02:14 +01:00
Sebastian Kürten 2f628a1106 Fix another typo 2016-11-01 11:56:46 +01:00
Sebastian Kürten 6a8a93286f Move a @since tag to start of a new line
Javadoc requires block tags to appear at the start of lines.
2016-11-01 11:46:16 +01:00
Sebastian Kürten 8b16ff180a Fix a few typos in Javadoc 2016-11-01 11:46:04 +01:00
Terence Parr 52523024e0 Merge pull request #1306 from parrt/master
Enhance JavaScript ParseTreeVisitor, add tests (other targets ignore this functionality)
2016-10-13 16:47:23 -07:00
parrt aabd148bf4 Merge branch 'cgudrian-dfs' 2016-10-13 16:44:04 -07:00
parrt 285c7fca6c resolve contribs conflict 2016-10-13 16:21:00 -07:00
Terence Parr 8d0ae8599e Merge pull request #1221 from ericvergnaud/javascript-consistency
Following #1218, ensure consistency of ATNConfigSet hashing strategy …
2016-10-13 14:05:36 -07:00
Terence Parr 6d59acce4c Merge pull request #1304 from nielsbasjes/EditorConfig
Add .editorconfig
2016-10-13 14:00:56 -07:00
Niels Basjes 0bf739fa73 Added Niels Basjes to the contributers list 2016-10-13 22:53:12 +02:00
parrt 4312b37828 pull test changes in 2016-10-13 10:58:19 -07:00
Terence Parr b889c49bbe Merge pull request #1305 from sharwell/line-endings
Add default .gitattributes
2016-10-13 10:49:04 -07:00
Sam Harwell 3f103dab1a Add default .gitattributes 2016-10-13 05:49:38 -05:00
Niels Basjes 5b8d262c8e Updated the editorconfig based on Sam's feedback. 2016-10-13 09:28:16 +02:00
Christian Gudrian 07f57564ec Update contributors.txt
Added cgudrian
2016-10-13 07:41:17 +02:00
Niels Basjes 57f2e0f006 Introduce EditorConfig for easier configuration of IDEs 2016-10-12 16:25:53 +02:00
Christian Gudrian 29c1a9f222 removed reference to local node installation 2016-10-12 15:56:40 +02:00
Christian Gudrian 75dd652d7a fixed visitAtom implementation
This implementation somehow got lost in rebasing.
2016-10-07 20:37:38 +02: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 0396561520 made visitAtom work for terminal nodes 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
Terence Parr e9aa00e05b Merge pull request #1172 from renatahodovan/default-pass
Add missing default pass statements to Python targets.
2016-09-25 11:24:48 -07:00
Terence Parr 5ea09b30f2 Merge pull request #1255 from renatahodovan/pythonic-python
Make Python targets more pythonic.
2016-09-25 11:24:07 -07:00
Renata Hodovan 03d5fb1244 Make Python targets more pythonic.
The Python implementations are completely synchronous
with the Java version even if some of the constructs
can be expressed with simpler Python solutions. These are
typically the all, any, count, next builtins or the list
comprehensions, etc. Beside using them makes the code
clearer, they are also prefered by the standard and can
result in performance speedup. The patch contains such
equivalent transformations in the Python targets.
2016-09-25 10:33:27 +02:00
parrt 0b2d5304a5 tweak links in doc 2016-09-24 11:20:13 -07:00
Terence Parr 683cbee2e7 Merge pull request #1261 from BurtHarris/fixGitignore
Fix .gitignore for codegen/target language directory
2016-09-23 15:24:52 -07:00
Burt Harris 10f5ebe22a Repair comment 2016-09-23 15:02:38 -07:00
Burt Harris 8e44b19ec9 Update .gitignroe fules for VisualStudio etc.
Avoids temp and user-preference files from getting commited
2016-09-23 14:58:21 -07:00
Burt Harris 9a7e0b5e4e Merge branch 'master' into fixGitignore
These are changes from the upstream master.
2016-09-23 14:47:33 -07:00
Burt Harris fdfe97c813 Merge branch 'master' of https://github.com/antlr/antlr4 2016-09-23 13:46:45 -07:00
parrt 2f92b47500 tweak links in doc 2016-09-23 13:19:44 -07:00
Terence Parr 5b461ddd77 Merge pull request #1268 from andjo403/windowsPaths
update the runtime paths to work in windows
2016-09-23 13:12:28 -07:00
Terence Parr 401f53fa3c Merge pull request #1289 from ericvergnaud/docs
Enhancing the doc
2016-09-23 10:11:34 -07:00
Eric Vergnaud d3ceee5043 Enhancing the doc 2016-09-24 00:02:18 +08:00
Christian Gudrian 46df58d5d7 The JavaScript ParseTreeVisitor now implements a depth-first traversal by default. 2016-09-22 08:28:11 +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
Andreas Jonson 71a2a1295f 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 22:22:05 +02:00
Burt Harris 89987e3579 + comment in .gitignore 2016-08-11 13:08:02 -07:00
Burt Harris a51b709954 Fix .gitignore for target language directory
Also added .gitignore entries for Node.js & typescript dependency cache directories.
2016-08-11 12:56:34 -07:00
Eric Vergnaud 0fed0b0684 Following #1218, ensure consistency of ATNConfigSet hashing strategy in JavaScript 2016-06-28 10:45:05 +02:00
Terence Parr 47e268dfea Merge pull request #1218 from ericvergnaud/python-performance-issue
Python performance issue
2016-06-23 08:54:27 -07:00
Eric Vergnaud 26c409103d Fix #1217
The root cause was that ATNConfigSet was not using he required custom hashing strategy for ParserATNSimulator.
The commit includes a number of additional fixes, related to code that was never executed before due to the root cause.
A similar issue is also likely to exist in the JavaScript runtime, I'll fix it later.
2016-06-23 15:51:39 +02:00
Eric Vergnaud 15430d4bf9 remove unwanted semicolon in generated Python code 2016-06-23 15:06:49 +02:00
Eric Vergnaud c260ce75d1 make it possible to add breakpoint 2016-06-23 15:06:14 +02:00
Eric Vergnaud 2a2b6acba1 links update 2016-04-26 13:27:26 +08:00
parrt d430f495ea add comments to "dead" code in serializer. text from Sam Harwell. 2016-04-25 09:49:29 -07:00
Renata Hodovan 7562bb3b45 Add missing default pass statements to Python targets.
The default pass statements were missing from the LL1AltBlock's
template in case of Python targets, which generated conditional statements
without body in some cases and ended in syntax error. The patch fixes this.
2016-04-13 21:21:07 +02:00