Commit Graph

5349 Commits

Author SHA1 Message Date
Terence Parr 08ecd5109e Merge pull request #1324 from parrt/model-updates-for-new-targets
Model updates for new targets
2016-11-05 17:55:50 +01:00
Peter Boyer b15c37fd02 Merge pull request #81 from pboyer/movedocs
Move go target docs
2016-11-05 12:49:16 -04:00
Peter Boyer 646b35284e Merge pull request #84 from pboyer/runner-mei-merge
Runner mei merge
2016-11-05 12:48:58 -04:00
Peter Boyer 451fe239c9 Merge pull request #79 from wjkohnen/go1.7.3
Travis: Update to current stable Go version.
2016-11-05 12:45:24 -04:00
Peter Boyer 9728fd59ba Merge remote-tracking branch 'origin/master' 2016-11-05 12:33:28 -04:00
Peter Boyer 0bfeb80aa2 Merge branch 'runner-mei-patch-4' 2016-11-05 12:33:06 -04:00
Peter Boyer 8ebd12918f Fix merge conflict 2016-11-05 12:32:33 -04:00
parrt 0799e838bb weird. missed a few files. these are to simplify get filename functionality. 2016-11-05 09:32:04 -07:00
parrt 62badff2e8 Pull again from parrt's branch 'model-updates-for-new-targets'. tests pass. 2016-11-05 09:30:46 -07:00
parrt abdb0b6a46 Merge branch 'model-updates-for-new-targets' of github.com:parrt/antlr4 into reduce-model-changes 2016-11-05 09:29:25 -07:00
parrt 2c98b5d325 incorporate in a single commit all changes needed to support generating header files. many fewer diffs with C++ target codegen now. 2016-11-05 09:25:51 -07:00
Peter Boyer 7eb6aec612 Add runtime 2016-11-05 12:25:15 -04:00
parrt 6d022379bc Pull in parrt's branch 'model-updates-for-new-targets' which appears to have freshened some non Go stuff as well. Simplify Go filename construction. 2016-11-05 08:48:37 -07:00
Mike Lischke 5e9211b093 Re-enabled all tests again. 2016-11-05 16:35:34 +01:00
parrt 40e19e5d37 refactor so getRecognizerFileName() etc... delegate to Target; default is same behavior. adds "is header" arg as well in prep for C++ 2016-11-05 08:08:08 -07:00
parrt 75794a588b track different types of StructDecl elements so Go can do setters/getters. 2016-11-05 07:35:57 -07:00
parrt c0cedc424b track different types of StructDecl elements so Go can do setters/getters. 2016-11-05 07:35:39 -07:00
Mike Lischke e71e95080a Merge branch 'master_upstream'
Also updated the list of ignored tests in the Cpp.test.stg file (lke it is done for the other targets).
2016-11-05 15:07:59 +01:00
parrt 8b8094c044 appears to be an ST bug that doesn't see arrays of len 0 as missing; convert array to List. 2016-11-05 06:55:09 -07:00
parrt e0521400cb rm need for isRuleContext in templates; refer to underlying grammar object. 2016-11-05 06:28:58 -07:00
runner 1b7fc4119d sign cla
sign cla
2016-11-05 19:58:22 +08:00
parrt 85f2a87840 rm recognizerName field where possible 2016-11-04 16:07:45 -07:00
parrt 95dbf7b44b look for go in path during tests 2016-11-04 16:06:41 -07:00
Peter Boyer f553056a2b Fix unused import error 2016-11-04 14:40:15 -04:00
Peter Boyer 8b67d2418c Move go target docs 2016-11-04 14:36:02 -04:00
Peter Boyer 0541f34a7e Merge with origin/master 2016-11-04 14:08:12 -04:00
Peter Boyer aa568711d9 Remove PortDebug 2016-11-04 13:55:39 -04:00
Wolfgang Johannes Kohnen d9c6ca4a35 Travix: Update to current stable Go version. 2016-11-04 17:09:58 +00:00
Mike Lischke b9f81ab04e Merge pull request #45 from RYDB3RG/master
small rule attribute fixes
2016-11-01 10:45:13 +01:00
kai stammerjohann af624e1321 contributors.txt update 2016-11-01 09:48:57 +01:00
kai stammerjohann f3c55be33c fix RulePropertyRef_stopHeaderHeader typo 2016-11-01 09:17:46 +01:00
kai stammerjohann 1feef18e3e ParserRuleContext init members 2016-11-01 09:06:27 +01:00
Mike Lischke f794820aaf Reworked mutex handling + updated C++ template for a var init
- Mutexes have been consolidated. Instead of one per DFA (which can easily get to hundreds of them) we only have one mutex in the Recognizer class and all other parties use this for serialization. It's only about protected the DFA anyway, which is stored in a recognizer (lexer/parser).
- ATNState::getStateType() returns a size_t value now (actually an enum).
- Replaced checks via RTTI for transitions by the (serialization) type of the transition, for simplicity.
- Added some missing initialization for fields in certain ATN state classes.
- Fixed mem leak in DFA by shadowing the s0 field. That way still have a ref to the self created instance, even is s0 was replaced later.
- Added variable init in code generation for a rule context declaration (e.g. for labels).
2016-10-29 14:46:38 +02:00
Peter Boyer 48e1f060d7 Merge pull request #78 from pemcconnell/master
http:// not allowed in go import path
2016-10-27 19:42:11 -04:00
Peter McConnell 0463e14e55 http:// not allowed in go import path 2016-10-26 14:55:19 +01:00
Mike Lischke c9f85f1d6a Merge pull request #41 from FloorGoddijn/master
cpp runtime: updated the vs2013 project reflecting the last changes
2016-10-22 16:10:35 +02:00
Floor 951d0f06d7 cpp runtime: updated the vs2013 project reflecting the last changes 2016-10-21 13:07:15 +02:00
Peter Boyer adef6f690a Cleanup var statements (#73)
* Cleanup var statements

* Fix type decl
2016-10-17 12:57:26 -04:00
Peter Boyer 07f7dae78f Fix type decl 2016-10-17 12:04:05 -04:00
Peter Boyer 191b8f9d58 Cleanup var statements 2016-10-17 11:41:56 -04:00
Mike Lischke 9e77edcb34 ATNState::transactions improvements
The transaction field was access with trivial getters and setters which server no real purpose, so I made the vector public and remove all the obsolete accessor functions. This simplifies the API (e.g. use .size() instead of getNumberOfTransitions()).
This change required a few other changes in runtime.

Additionally, I radically cut down the ATN::toString method to return only what the Java runtime is doing instead of a full dump of the state and it's transitions.
2016-10-14 17:10:00 +02:00
Mike Lischke aabf4baf60 Added default c-tor to ParseTree + improved createInstance.
createInstance now use move semantics for its parameters.
2016-10-14 17:05:00 +02:00
Mike Lischke 014070de66 Converted smart pointer for the rule context in RecognitionException
Since we pass around raw pointer for volatile references now, we must not create smart pointers from them or we will get a double free.
2016-10-14 17:03:38 +02: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
Peter Boyer 2444386091 Remove JavaScript PORT_DEBUG, re-enable runtime tests for other language targets (#69)
* Re-enable runtime tests for other language targets

* Fix typo in js code

* Remove PORT_DEBUG statements

* Fix missing

* Fix testAltNum
2016-10-13 17:06:22 -04: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