Commit Graph

5333 Commits

Author SHA1 Message Date
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
Peter Boyer 10f15cabf8 errorNode() impl (#59) 2016-10-06 16:19:05 -04:00
Peter Boyer a5859fd54e Fix PredictionContext merge() typo (#61)
* Fix pred context typo

* Adjust array lengths
2016-10-06 16:18:18 -04:00
Mike Lischke 2e92b38bf7 Updated unit tests after last refactoring. 2016-10-06 17:17:36 +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
Peter Boyer 9b76bc6a71 Update Go.stg 2016-10-05 12:04:01 -04:00
Peter Boyer bb9a08b158 Merge pull request #48 from runner-mei/patch-4
auto locate go path on the windows
2016-10-04 22:13:59 -04:00
Mike Lischke 6c225337ae Trying a different compiler in Travis CI. 2016-10-04 11:02:40 +02:00
Mike Lischke e8f00f8074 Another attempt for Travis CI. 2016-10-04 10:51:14 +02:00
Mike Lischke fc5c1a29f9 Next attempt to get the C++ runtime compiled in Travis CI. 2016-10-04 10:17:59 +02:00
Mike Lischke bb5d7ef0b6 Set minimum cmake version to 3.1 for C++ target. 2016-10-04 10:09:31 +02:00
Mike Lischke c968b5209e alts outer-context flag/counter in ATNConfig is now unsiged.
A few more removals of no longer necessary casts.
2016-10-03 16:11:45 +02:00
Mike Lischke 0e0ecfafde Fixed a number of warnings for VS. 2016-10-03 14:50:22 +02: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 70fd9527a4 C++11 for Travis CI. 2016-10-02 17:01:16 +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 5c63bc9a07 Some clean up and xcode unit test fixes. 2016-09-30 10:59:44 +02:00
Mike Lischke 4394cd20b0 Merge branch 'master_upstream' 2016-09-29 16:50:57 +02:00
Mike Lischke f983fac7c7 Added support for hidden symbols on Linux and OSX.
It's now possible to hide all symbols by default and publish only those marked with the ANTLR4CPP_PUBLIC macro (same as for Windows). The included XCode project makes use of this option now.
2016-09-29 16:48:17 +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
Mike Lischke 28eb19f52e Explicitly delete copy c-tor and operator for DefaultErrorStrategy.
This class holds a vector of unique_ptr instances and hence cannot be copied.
2016-09-25 11:48:18 +02:00
Mike Lischke 3b98c1136e Merge branch 'master_upstream' 2016-09-25 11:31:51 +02:00
Mike Lischke ee3e918e4e Exclude also vscode project data when generating the source zip. 2016-09-25 11:24:53 +02: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
Mike Lischke 19345919de Bug fixes + XCode 8 updates
- Recommended project updates from XCode 8 applied.
- Bug: ANTLRInputStream not fully initialized when constructing from a stream.
- Account for more than one temporary error token in DefaultErrorStrategy.
2016-09-24 12:33:54 +02: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
Mike Lischke 1df9d54e05 Reverted all Travis changes. Didn't do what I expected. 2016-09-07 21:13:01 +02:00
Mike Lischke 82a22b51a4 Trying to counter weird Travis error. 2016-09-07 21:08:46 +02:00
Mike Lischke 5afa240b97 Add Travis settings necessary for C++11 compilation. 2016-09-07 21:04:38 +02:00
Mike Lischke b0fc8ea0da Added semicolon generation after some of the header decls.
Closes issue #40.
2016-09-06 09:51:31 +02:00
Mike Lischke 6f31e94cb9 Merge pull request #39 from nburles/fix-utf8-bom
Second parameter is end pointer, not size
2016-09-02 13:58:48 +02:00
Nathan Burles 6638883d9d Second parameter is end pointer, not size 2016-09-02 12:51:28 +01:00
Peter Boyer c61735ea7e Merge pull request #39 from willfaught/interfaces
Add interface build checks for tree types and generated base listeners
2016-08-22 20:53:48 -04:00
Peter Boyer 982488f6ca Merge pull request #44 from wjkohnen/clasign
Sign CLA.
2016-08-22 20:53:02 -04:00