Commit graph

1230 commits

Author SHA1 Message Date
Prashant Anantharaman
9b4aa14ebc Add *.gem to Gemfile 2016-09-11 09:36:28 -07:00
Prashant Anantharaman
257ba3ff7d Add email, home page and license to gemspec 2016-09-09 10:33:50 -07:00
Prashant Anantharaman
b86349fde7 Add more documentation for Ruby binding 2016-09-09 10:23:29 -07:00
Meredith L. Patterson
6068ec9fce Merge pull request #177 from tomime/readme-links
Readme links
2016-08-19 12:33:19 +02:00
Meredith L. Patterson
3b1200287c Merge pull request #164 from mrdomino/master
Custom printers for user token types
2016-08-19 12:32:20 +02:00
Steven Dee
2b6b300f91 Custom printers for user token types
I did this in a hurry, but it appears to work locally. I tested it with
a couple boring custom token type printers.
2016-08-12 15:30:30 -04:00
tomime
c071c2dc53 wikipedia links for base64 and DNS 2016-08-11 23:59:59 +02:00
tomime
9dc295ef06 link to nunit.org 2016-08-11 22:55:43 +02:00
tomime
b6c1d88054 link to ruby-lang.org 2016-08-11 22:50:20 +02:00
tomime
c5fc65b58b link to swig.org 2016-08-11 22:48:55 +02:00
tomime
a04638b903 link to scons.org 2016-08-11 22:48:18 +02:00
Meredith L. Patterson
bfb07bbbf6 Merge pull request #176 from thequux/master
Fix clobbered variable warning in regex.c:run_trace. Fixes #162
2016-08-11 13:59:02 +02:00
TQ Hirsch
5abdeea9b8 Fix clobbered variable warning in regex.c:run_trace. Fixes #162 2016-08-10 16:20:07 +02:00
TQ Hirsch
ed2694c41f Merge pull request #172 from tomime/readme-learning
linked more documentation/resources
2016-08-10 15:33:55 +02:00
TQ Hirsch
91a478778b Merge pull request #175 from tomime/local-certs
travis cert issue fix
2016-08-10 15:32:51 +02:00
tomime
98077b116f remove mozroots 2016-08-10 12:51:06 +02:00
tomime
eebdf3fdd8 added note on outdated hammer primer 2016-08-01 12:54:13 +00:00
tomime
637c9b5d03 linked more documentation/resources 2016-07-30 13:02:32 +00:00
Meredith L. Patterson
5317ad89ba Merge pull request #165 from uucidl/win32-scons
build on Windows with scons
2016-05-31 01:14:20 +02:00
nicolas
335c8eee9c Add scons build to appveyor builds
This will guarantee we can build hammer with default arguments
2016-05-22 13:56:17 +02:00
nicolas
39e101df03 Note for later about windows port 2016-05-22 13:33:55 +02:00
nicolas
88420038f9 Replace all double quotes with single quotes
To homogenize the file and allow keys/strings to be searched easily.
2016-05-22 13:33:46 +02:00
nicolas
69d3e70211 Port scons build files for Windows users
We disable:
- the tests (which require glib) although they can be
  reactivated with the `--tests` command line flag
- shared library (lack of export symbol declarations
  means that although it can be built, no symbol is
  exported and therefore it can't be used)

The `install` target installs the library and headers
under the `build` folder, because it's a traditional practice
to move libraries to a central location on Windows, unless
you are using cygwin. In which case pass `prefix` to the
command line.

We adapt tools\windows\build_examples.bat to take the library
that is built using scons or using tools\windows\build.bat
2016-05-22 13:29:12 +02:00
nicolas
f31e3ba4bd Move sections around to allow porting to windows
We will need to use the environment's CC variable to make decisions
that apply to windows compiling and linking. Therefore we move some
existing sections below the set up of env["CC"] and env["CXX"]
2016-05-22 13:18:19 +02:00
Meredith L. Patterson
45eea0d968 Merge pull request #160 from uucidl/master
Finish porting parsers to windows
2016-02-24 23:40:45 +01:00
Nicolas Léveillé
f9d8f1df7f Reactivate examples that can build on windows
This is proof that Hammer can be linked and used in a windows
program!
2016-01-31 18:11:27 +01:00
Nicolas Léveillé
9a7752b9a6 Finish porting hammer's library to windows
We port registry by importing the (public domain) openbsd implementation
of the tfind/tsearch POSIX binary tree search functions.

These are only necessary when building on non-posix platforms
2016-01-31 17:27:19 +01:00
Nicolas Léveillé
206f5044a8 Remove warning about tail "potentially uninitialized"
MSVC was complaining that the `tail` variable was potentially
uninitialized in the while branch. Since the while loop is actually
coupled to the if (head != NULL) that initializes the tail variable,
we move them together, which makes the warning disappear.
2016-01-31 16:55:17 +01:00
Nicolas Léveillé
d6e6911ad1 -y for install lcov 2015-12-20 12:43:34 +01:00
Nicolas Léveillé
2623d1a5f1 Add all remaining parsers that were not compiling on windows
The last file to port for the library is registry.c
2015-12-20 11:51:05 +01:00
Nicolas Léveillé
62d793b939 Remove warning about parser signature being wrong 2015-12-20 11:51:01 +01:00
Nicolas Léveillé
c95b2987b1 Support variable array length instantiation on MSVC
As MSVC doesn't implement C99, variable-length arrays
are not supported. We use _alloca instead.
2015-12-20 11:50:58 +01:00
Nicolas Léveillé
c5ca35c347 Remove c4388 signed/unsigned mismatch
It is the counterpart to c4018 for x64 compilations.
2015-12-20 11:50:54 +01:00
Nicolas Léveillé
b3a8403b8e Remove more useless MSVC warnings 2015-12-20 11:50:40 +01:00
Meredith L. Patterson
efea10417c Merge pull request #157 from moreati/python-examples
Added Python versions of base64 examples
2015-12-13 15:31:51 -08:00
Meredith L. Patterson
f806125ab8 Merge pull request #140 from pesco/fix-wrong_bit_length
Some combinators may report the wrong amount of consumed input
2015-12-13 15:19:02 -08:00
Meredith L. Patterson
68becde6d3 Merge pull request #158 from pesco/fix-dotdot-includes
disable warning on windows about '..' in include paths
2015-12-13 11:32:17 -08:00
Sven M. Hallberg
aa1d9b7d25 disable warning on windows about '..' in include paths 2015-12-08 15:38:35 +01:00
Sven M. Hallberg
50a73f6ab2 Merge remote-tracking branch 'upstream/master' into fix-wrong_bit_length 2015-12-07 11:05:05 +01:00
TQ Hirsch
41b890c74d Merge pull request #155 from pesco/fix-alloc-failures
Handle memory allocation failures gracefully
2015-12-06 08:09:45 -08:00
Sven M. Hallberg
d28f182c4f clear arena exception handler when exiting llk_parse_chunk_ 2015-12-04 13:28:26 +01:00
Alex Willmer
c6280a98bc Added Python versions of base64 examples
These are transliterations of the existing C files.
They're not particularly Pythonic or performant, but they're a start.

Example of usage

```
$ echo '  YW55IGNhcm5hbCBwbGVhcw==' | PYTHONPATH=../build/opt/src/bindings/python/ python base64.py
inputsize=27
input=  YW55IGNhcm5hbCBwbGVhcw==
((((89L, 87L, 53L, 53L), (73L, 71L, 78L, 104L), (99L, 109L, 53L, 104L), (98L, 67L, 66L, 119L), (98L, 71L, 86L, 104L)), (99L, 'w', '=', '=')),)
$ echo '  YW55IGNhcm5hbCBwbGVhcw==' | PYTHONPATH=../build/opt/src/bindings/python/ python base64_sem1.py
inputsize=27
input=  YW55IGNhcm5hbCBwbGVhcw==
(97L, 110L, 121L, 32L, 99L, 97L, 114L, 110L, 97L, 108L, 32L, 112L, 108L, 101L, 97L, 115L)
$ echo '  YW55IGNhcm5hbCBwbGVhcw==' | PYTHONPATH=../build/opt/src/bindings/python/ python base64_sem2.py
inputsize=27
input=  YW55IGNhcm5hbCBwbGVhcw==
(97L, 110L, 121L, 32L, 99L, 97L, 114L, 110L, 97L, 108L, 32L, 112L, 108L, 101L, 97L, 115L)
```
2015-12-04 10:20:25 +00:00
Sven M. Hallberg
9602caf64f test out-of-memory handling with a mock allocator 2015-12-02 14:10:12 +01:00
Sven M. Hallberg
7b13a82851 add __m variants to some check macros 2015-12-02 13:28:24 +01:00
Sven M. Hallberg
db4fd66eaf try it with a smaller alloc 2015-12-01 18:12:21 +01:00
Sven M. Hallberg
e89d9f9134 delete results properly in parser test macros 2015-12-01 17:51:45 +01:00
Sven M. Hallberg
22b5611cdf add oom handling to iterative LR engine 2015-12-01 17:10:47 +01:00
Sven M. Hallberg
384a7b9390 reset arena jmp_bufs at end of h_llk_parse_chunk 2015-12-01 17:07:04 +01:00
Sven M. Hallberg
3ce4f61cf9 add test for out-of-memory handling 2015-12-01 16:56:08 +01:00
Sven M. Hallberg
2309bd6da9 out-of-memory support for iterative LL(k) 2015-12-01 16:48:01 +01:00