antlr/runtime/Cpp
Mike Lischke baef9b0b32 New unit tests for Interval + MurmurHash.
While testing Interval() and Interval::of() I found that the latter is twice as slow as the normal object creation. Seems caching single element intervals doesn't have the same impact as in Java (quite the opposite), so I removed Interval::off and the interval cache.

The MurmurHash implementation was actually for a 32bit platform, so I added a 64 bit version too (stripped down from 128 bit MurmurHash3). Tests cannot directly check the correctness of the algorithm, but duplicate checks over 300K hashs (for short input, which is more prone to duplicates than longer input) showed there are no duplicates. So I take it that the code is good.

Fixed a hash creation bug in PredictionContext.cpp.
2016-03-28 18:15:50 +02:00
..
demo New unit tests for Interval + MurmurHash. 2016-03-28 18:15:50 +02:00
runtime New unit tests for Interval + MurmurHash. 2016-03-28 18:15:50 +02:00
License.txt Added all changes done so far. Since we are here on a very old revision I cannot simply merge, so all files have manually been copied and we have no history for these changes. 2016-03-18 14:22:42 +01:00
README.md Added all changes done so far. Since we are here on a very old revision I cannot simply merge, so all files have manually been copied and we have no history for these changes. 2016-03-18 14:22:42 +01:00

README.md

C++ target for ANTLR 4

This fork provides C++ runtime support for C++. See the canonical antlr4 repository for in depth detail about how to use Antlr4.

Authors and major contributors

ANTLR 4 is the result of substantial effort of the following people:

The C++ target has been the work of the following people:

Project Status

  • Building on OS X, Windows, and Linux (Ubuntu)
  • No errors and warnings
  • Library linking
  • Simple running (e.g. heap objects initialize properly)
  • Simple testing (creating significiant objects)