Commit Graph

2344 Commits

Author SHA1 Message Date
parrt b5648f405b tweak documentation about various targets 2017-03-30 10:44:28 -07:00
Ben Hamilton a1c225dd23 Use UTF-8 by default in UnbufferedCharStream and allow specifying charset 2017-03-29 14:53:04 -07:00
Terence Parr 6e474eb43e Merge pull request #1776 from bhamiltoncx/js-char-streams
New JavaScript CharStreams functions
2017-03-29 14:38:41 -07:00
Terence Parr 828461337f Merge pull request #1775 from bhamiltoncx/csharp-char-streams
New C# CharStreams static factory class
2017-03-29 14:37:06 -07:00
parrt c3ed9a992d Add more about unbuffered streams. tweak style of code 2017-03-29 13:56:57 -07:00
parrt 0b36aca0e6 Merge branch 'master' into deprecate-old-streams 2017-03-29 13:43:28 -07:00
Terence Parr 0c38662134 Merge pull request #1799 from bhamiltoncx/tidy-java-unbuffered-char-stream
Small tidy-up for Java UnbufferedCharStream
2017-03-29 13:42:26 -07:00
Terence Parr 04972c2676 Merge pull request #1798 from bhamiltoncx/csharp-unbuffered-char-stream-code-points
C#: Change UnbufferedCharStream to use 32-bit Unicode code points and 32-bit buffer
2017-03-29 13:42:06 -07:00
Ben Hamilton 9c61db36b0 Small tidy for Java UnbufferedCharStream 2017-03-29 13:32:55 -07:00
parrt ef0ff3275f Merge branch 'master' into deprecate-old-streams 2017-03-29 13:30:33 -07:00
parrt 496f9c398d update unicode doc, code comments 2017-03-29 13:29:23 -07:00
Ben Hamilton 366dbac8d1 C#: Change UnbufferedCharStream to use 32-bit Unicode code points and 32-bit buffer 2017-03-29 13:29:10 -07:00
Ben Hamilton 8108b342ad Change UnbufferedCharStream to use 32-bit Unicode code points and 32-bit buffer 2017-03-29 13:14:18 -07:00
Ben Hamilton 200379802a Tidy comments and add tests to ensure UTF-16 and UTF-32 support Unicode code points > U+FFF 2017-03-29 10:06:08 -07:00
Ben Hamilton ab0655598e Improve memory usage of CodePointCharStream: Use 8-bit, 16-bit, or 32-bit buffer 2017-03-27 16:46:42 -07:00
Terence Parr b1360c4e28 Merge pull request #1789 from bhamiltoncx/interval-set-binary-search
IntervalSet perf: Use binary search for IntervalSet.contains(el)
2017-03-24 13:59:09 -07:00
Ben Hamilton 850abe1c81 IntervalSet perf: Use binary search for IntervalSet.contains(el) 2017-03-24 12:19:38 -07:00
Hanzhou Shi e334b0df86 Adding visitor tests. 2017-03-23 22:51:21 -07:00
Hanzhou Shi 91ce56c7fd Tweak Run Script phase. 2017-03-23 22:51:21 -07:00
Hanzhou Shi c3dc1b0d68 Update grammar name to align with JAVA tests. 2017-03-23 22:51:21 -07:00
Hanzhou Shi 2dab85ce2b Fixed printing of RewriteOps, now tests are passing. 2017-03-23 22:51:21 -07:00
Hanzhou Shi cb396a5047 Fixes #550 by separate op for insertAfter. 2017-03-23 22:51:21 -07:00
Hanzhou Shi cefd2c6528 Adding TokenStreamRewriterTests. 2017-03-23 22:51:20 -07:00
Hanzhou Shi 6d2b5b6790 Added "run script" build phase that can generate parser files. 2017-03-23 22:51:20 -07:00
Ben Hamilton f72e22550c charstreams-js 2017-03-22 11:03:16 -07:00
Ben Hamilton 307df9c68d New C# CharStreams static factory class 2017-03-20 13:07:08 -07:00
Peter Boyer eee59b9f7f Merge remote-tracking branch 'upstream/master' into racefix2 2017-03-19 17:59:13 -04:00
parrt 549d657ba4 rm dead code, tweak spaces, style. 2017-03-16 17:09:37 -07:00
Terence Parr 1f6a329692 Merge pull request #1765 from bhamiltoncx/unicode-cleanup-and-doc
Tidy up CharStreams and add new doc/unicode.md
2017-03-16 17:03:06 -07:00
Ben Hamilton 4f2168600d Tidy up CharStreams API. Add new doc/unicode.md 2017-03-16 17:01:46 -06:00
Peter Boyer 11b4ee61f0 Protect shared DFA state with mutexes 2017-03-16 12:43:21 -04:00
parrt e7979dcf63 rollback #1740. Useful stuff but breaks C++ unit tests. 2017-03-15 10:34:27 -07:00
Robert van der Hulst ef49021c8b Fixed portability problems in C# target. Also cleaned up some XML doc comments 2017-03-15 10:15:43 +01:00
parrt 1b0a8aa2e8 Fixes #1747 2017-03-14 10:35:22 -07:00
Peter Boyer 9a13551424 Fix performance issue in PredicitionMode 2017-03-12 15:29:20 -04:00
Peter Boyer 747efb8f0e Private comparable 2017-03-12 14:57:27 -04:00
Peter Boyer e41db9a250 Make Hasher package private 2017-03-12 14:56:25 -04:00
Peter Boyer db447513e5 Refactor hash methods 2017-03-12 14:53:58 -04:00
Peter Boyer d8998ec00d Remove last vestiges of old hash string impl 2017-03-12 14:32:27 -04:00
Peter Boyer df08e69a7d Cleanup 2017-03-12 14:24:36 -04:00
Peter Boyer ff44cc5d28 Imports 2017-03-12 14:19:34 -04:00
Peter Boyer d43e63c362 Remove another dead hash string impl 2017-03-12 14:18:55 -04:00
Peter Boyer e22d94a817 Remove dead Hash methods 2017-03-12 14:17:15 -04:00
Peter Boyer 1a28a0429b Cleanup LexerActionExecutor 2017-03-12 14:14:26 -04:00
Peter Boyer 6ff55d0bfe Fix bug in BaseATNConfigSet HashCode 2017-03-12 14:10:53 -04:00
Peter Boyer 86bf2fe089 Delete more Hash implementations 2017-03-12 13:28:26 -04:00
Peter Boyer 9ea82bc47a Cleanup 2017-03-12 13:26:59 -04:00
Peter Boyer f4061adeb2 Use HashCode for ATNConfigSet, DoubleDict 2017-03-12 13:24:56 -04:00
Peter Boyer 3bc902e2ff Change DoubleDict to use int 2017-03-12 13:14:19 -04:00
Peter Boyer b62aea3ce3 ATNConfig HashCode 2017-03-12 13:11:58 -04:00