Commit Graph

6480 Commits

Author SHA1 Message Date
Terence Parr c1663e7c0f Merge pull request #1845 from xied75/dotnetcore
[dotnet] speed up tests; rename runtime dll ready for nuget
2017-05-12 08:00:38 -07:00
Terence Parr cf359a0e32 Merge pull request #1867 from TreeViz/fix-broken-js-inputstreams
Add `new` keyword to return proper InputStreams
2017-05-11 14:22:59 -07:00
Jim Allman 892aa4a376 Fix other calls to InputStream constructor. 2017-05-11 17:08:24 -04:00
Jim Allman 5e648f0867 Add `new` keyword to return proper InputStreams
Currently the JS runtime sometimes returns (and mangles) the global
`window` object instead of a proper InputStream. This is prevented by
using the `new` keyword in all cases.
2017-05-11 16:27:42 -04:00
Hanzhou Shi 834f1ede27 Find antlr4 runtime instead of hardcoding. 2017-05-09 21:31:32 -07:00
Hanzhou Shi c53bd27734 Get rid of xcodeproj file. 2017-05-08 22:37:21 -07:00
Hanzhou Shi 55f9c06509 Now can generate xcode project. 2017-05-08 22:36:29 -07:00
Hanzhou Shi 9f41e6fd9d Adding support for generating local ANTLR Swift repo. 2017-05-08 22:28:46 -07:00
Hanzhou Shi d5f37015ab Adding more commands and comments. 2017-05-07 22:48:36 -07:00
Hanzhou Shi c13964868c Renaming test.py to boot.py and make it more general. 2017-05-07 22:37:48 -07:00
Mike Lischke a53c49ff44 Merge branch 'master-upstream' 2017-05-04 09:58:10 +02:00
David Sisson e9dd953cf1 Fixed another occurrence of NewFileInputStream. 2017-04-29 19:55:32 -07:00
David Sisson fc8b14b1dc io.Copy surprisingly returns the number of bytes it copies so we need to explicitly ignore that. 2017-04-29 18:45:45 -07:00
David Sisson 81b8078860 updated 2017-04-29 17:52:21 -07:00
David Sisson f41ce7fed4 Fix tests for PR #1844. 2017-04-29 17:27:08 -07:00
Terence Parr b404abb11e Merge pull request #1844 from davesisson/master
Add proper error handling semantics to FileStream.
2017-04-28 15:23:53 -07:00
Dong Xie e94b3acaed [dotnet] fix again for the test speed up 2017-04-28 16:18:36 +01:00
David Sisson 32a8874a29 Add proper error handling semantics to FileStream. 2017-04-27 21:40:44 -07:00
Dong Xie 5fffe4bb2e [dotnet] try to get test run faster; update from 1.0.1 to 1.0.3; fix test dir removal not recursive 2017-04-27 17:23:48 +01:00
parrt 8c05696ed4 update js doc 2017-04-26 09:56:31 -07:00
Mike Lischke d12e755c02 Properly sorted exceptions in the forward declaration list.
Removed some duplicate classes there too.
2017-04-26 16:18:50 +02:00
Mike Lischke defad74649 Extended tokenVocab search to the grammar subfolder. 2017-04-19 15:48:07 +02:00
Mike Lischke 1fdb7cd31d Update C++ target doc for latest API changes - fixes #1824. 2017-04-19 14:23:44 +02:00
Mike Lischke 76394af71a Channel parameter in c-tor is now a size_t - fixes #1827.
A bit cleanup on the way.
2017-04-19 14:13:01 +02:00
Mike Lischke 47e43cc8d6 Simplify output path generation
The twisted way to create a javac like output path breaks many use cases, including very simple ones with lexer + parser grammar in a relative subdir (where parser generation doesn't find the lexer tokens). Additionally, not all projects prefer to have their generated files in an output folder which is comprised of the given output path and the subdir given for the grammar files. The check for absolute paths as decision criterion is a weak one anyway - it makes simple usage difficult and doesn't deal with path expansion on all platforms.

If a javac like output path is required it should be easy to construct this upfront and provide it as the output path parameter, instead of implicitely creating it. This patch simplifies things without any WTF moments because generated files end up and unexpected locations. It now can deal with simple cases (no output, no grammar subdir) up to complicated cases (nested and/or absolute output dir, multiple grammar subfolders).
2017-04-19 13:47:12 +02:00
Terence Parr 2f248353a3 Merge pull request #1819 from bradh/patch-1
Update getting-started.md (trivial)
2017-04-17 09:57:24 -07:00
Terence Parr 43e73c548b Merge pull request #1822 from mike-lischke/master
Small fix in cmake file. Fixes #1809.
2017-04-17 09:56:49 -07:00
Terence Parr 9ee5690bd9 Merge pull request #1821 from lys0716/master
Correct typo in lexicon.md
2017-04-17 09:56:23 -07:00
Terence Parr efc0a14879 Merge pull request #1810 from xied75/dotnetcore
[dotnet] update to .netcore v1.0.1; add osx build
2017-04-17 09:55:32 -07:00
Mike Lischke 1503821fa6 Small fix in cmake file. Fixes #1809. 2017-04-13 09:08:56 +02:00
lys0716 6222dbff44 Correct typo in lexicon.md
’\’' should be ’\’

Signed-off-by: Yishuang Lu <luyscmu@gmail.com>
2017-04-12 16:57:08 -07:00
lys0716 b8e81d5814 Correct typo in lexicon.md
’\’' should be ’\’

Signed-off-by: Yishuang Lu <luyscmu@gmail.com>
2017-04-12 16:50:09 -07:00
Brad Hards 8a9f259f62 Update getting-started.md
Either that or say what is is useful to do with...
2017-04-09 15:16:26 +10:00
Terence Parr 42e6b09d54 Merge pull request #1813 from FloorGoddijn/master
CPP target runtime: fixed a memleak
2017-04-07 09:31:40 -07:00
parrt 5616e370e4 add null check to findNodeSuchThat 2017-04-06 15:41:21 -07:00
Terence Parr 9519bfc36f Merge pull request #1818 from parrt/fix-1815-again
Fixes #1815 (for real this time!)
2017-04-06 14:36:22 -07:00
parrt f858cd5948 Fixes #1815 (for real this time!). Fix text set for erroneous escapes so tool doesn't fail later. Remove some duplicate error messages. Add test for #1815. 2017-04-06 14:34:37 -07:00
Terence Parr 6d4e019b16 Merge pull request #1808 from hanjoes/migration
Fixing Problems after Swift3.1 Release
2017-04-06 12:28:23 -07:00
Terence Parr 60a8157719 Merge pull request #1817 from parrt/fix-1815
Fixes #1815. Invalid escape error msgs kinda sucked. Prevent null ptr later in pipeline.
2017-04-06 10:30:29 -07:00
parrt 80aa7907a4 Fixes #1815. Add info on what the invalid escape is. Match \x for any x but give error. This prevents \x from appearing like a sequence of 2 char. Updated unit tests. 2017-04-06 10:26:03 -07:00
Floor ea3d9d8fb4 fixed a memleak ( "previous' was not deleted when one of the break statements was hit) 2017-04-05 10:44:48 +02:00
Floor 96cee174ce Merge remote-tracking branch 'refs/remotes/antlr/master' 2017-04-05 10:40:30 +02:00
Dong Xie da4987dc38 [dotnet] update to .netcore v1.0.1; add osx build 2017-04-04 15:26:40 +01:00
parrt 8af0080103 add link 2017-04-03 09:56:07 -07:00
Floor df600054af Merge remote-tracking branch 'refs/remotes/antlr/master' 2017-04-03 13:15:07 +02:00
Hanzhou Shi 07048fe787 Fixing unit tests. 2017-04-02 09:41:55 -07:00
Hanzhou Shi b5caa8e945 Migrating to Swift 3.1. 2017-04-01 22:47:45 -07:00
Terence Parr 61f6df21be Merge pull request #1805 from bhamiltoncx/fix-something-stupid
Python 3 codegen probably didn't mean to limit ATN segment size to 2 XOR 31
2017-04-01 10:29:25 -07:00
Terence Parr 9d236bef84 Merge pull request #1806 from hanjoes/xcode
Fixing Xcode project setting.
2017-04-01 10:28:38 -07:00
hanzhos e254f346a4 Fixing Xcode project setting. 2017-03-31 14:56:52 -07:00