Commit Graph

208 Commits

Author SHA1 Message Date
Liumeo
248540274d Fix long format 2020-04-07 22:30:34 -04:00
Daniel Holden
c059e45ba2 Merge pull request #120 from jcrowgey/lint/extraneous_whitespace
Removed trailing whitespace
2020-01-11 16:56:49 -05:00
Joshua Crowgey
0edd06ec44 Removed trailing whitespace 2020-01-08 22:07:32 -08:00
Daniel Holden
5120609e6e fixed bug with trimming string with all space characters 2019-09-01 16:21:11 -04:00
Daniel Holden
e1038bc376 Merge pull request #110 from nmeum/fix-109
Fix backtracing bug with mpc_parse_pipe
2019-09-01 13:58:53 -04:00
Daniel Holden
ea778d1b8d added maximum recursion depth 2019-09-01 13:32:36 -04:00
Daniel Holden
9716397357 Merge pull request #116 from vemakereporter/fix_fts
Fix incremental build problems.
2019-08-31 12:47:46 -04:00
vemakereporter
7812a33774 Fix dependency issues reported by Vemake 2019-08-07 10:15:39 +00:00
Vemake
217a551a0a Use tabs instead of spaces in Makefile. 2019-08-07 17:55:12 +08:00
Vemake
8cf2c1d2d7 Fix 12 dependency issues in Makefile 2019-07-23 12:14:11 +08:00
Daniel Holden
cd50a555d3 Merge pull request #112 from fgeorgatos/patch-1
typo: recieved -> received
2019-06-25 19:48:37 -04:00
Fotis Georgatos
83393d4f4c typo: recieved -> received [ok] 2019-06-24 22:46:12 +02:00
Fotis Georgatos
f323a89923 typo: recieved -> received 2019-06-24 22:44:58 +02:00
Sören Tempel
6f5e8f0f39 Fix backtracing bug with mpc_parse_pipe
Before we free our buffer we need to reset the underlying stream to its
original state by pushing the buffer contents back onto the input
stream.

Fixes #109
2019-06-17 17:29:22 +02:00
Daniel Holden
dbe7308b9c Added destructor to check combinators 2019-06-15 14:30:41 -04:00
Daniel Holden
001a2c350a Merge pull request #93 from HalosGhost/master
Dramatically update Makefile
2019-06-10 18:48:24 -04:00
halosghost
147545a488 preliminarily detect windows platforms and call -fPIC accordingly 2019-06-09 18:20:27 -05:00
halosghost
41f3a6de7c leverage $(AR) and allow mkdir-invocation to be configurable 2019-05-23 21:23:35 -05:00
Daniel Holden
b31e02e427 version number 2018-12-16 09:53:56 -05:00
Daniel Holden
060bf54a01 merge 2018-12-15 16:13:51 -05:00
Daniel Holden
37c4de35a3 Fixed bug with end of file and parsing from a file 2018-12-15 16:11:39 -05:00
Daniel Holden
7ccd944451 Merge pull request #96 from sphynx/master
Add documentation for ? and {d} in language approach. Fix EOL issues
2018-12-05 18:57:00 -05:00
Ivan Veselov
462d5c8f9d Add documentation for ? and {d} in language approach. Fix EOL issues 2018-12-02 12:34:09 +00:00
halosghost
a17815f36c Dramatically update Makefile
- Out-of-Tree builds (defaults to ./build, configurable via DIST)
- Install and uninstall rules (which respect DESTDIR and PREFIX)
- Production of static and dynamic libraries
- Testing of all three methods of inclusion
    - direct file inclusion
    - static library
    - dynamic library (using LD_LIBRARY_PATH)
- Better declaration of PHONY targets
- Expose ability to override CC and CFLAGS
2018-11-09 11:19:49 -06:00
Daniel Holden
e585591e0e Merge pull request #92 from lzutao/fix-ctype
Cast argument to unsigned char before passing to ctype.h function
2018-11-07 13:04:50 -05:00
Lzu Tao
6c03383cd1 Cast argument to unsigned char before feeding to ctype.h functions
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.

References:
 - C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5
2018-11-06 14:40:04 +00:00
Daniel Holden
4a992d91ab Added mode option to regex and also changed example from a line reader to a tokenizer. 2018-10-14 17:20:11 -04:00
Daniel Holden
95439eb9c8 Merge github.com:orangeduck/mpc 2018-10-13 18:28:02 -04:00
Daniel Holden
fbc5d8f9ae Added line-reader example. Changed behaviour of eof on regex to parse either eof or a newline followed be eof (better matchers other regex engines). 2018-10-13 18:27:42 -04:00
Daniel Holden
65060137b1 Adjust the behaviour of mpc_eoi so that it only is successful in matching the end of input once. 2018-10-13 17:35:21 -04:00
Daniel Holden
3f23d5e854 Update README.md
typo
2018-10-09 21:00:55 -04:00
Daniel Holden
2b05913b14 Merge pull request #82 from howerj/master
Fix minor memory leak, fix non-compliance with ANSI standard
2018-05-13 07:26:59 -07:00
Richard James Howe
d3ea59b5e2 Back to -ansi, removed trailing comma 2018-05-11 00:01:41 +01:00
Richard James Howe
aa3af70ae5 Fix minor memory leak, changed standard ansi->c99 2018-05-09 19:36:00 +01:00
Daniel Holden
89eb73216b Merge pull request #81 from jeberger/master
Add `mpc_check` and `mpc_check_with` combinators.
2018-04-04 15:26:01 -07:00
Jerome M. BERGER
10d5753b87 Fix mpc_checkf and mpc_check_withf tests. 2018-04-03 16:29:23 +02:00
Jerome M. BERGER
a63bedc74a Add mpc_checkf and mpc_check_withf combinators. 2018-04-03 14:53:13 +02:00
Jerome M. BERGER
dfda9d3bd6 Add tests for mpc_check and mpc_check_with. 2018-04-03 10:07:54 +02:00
Jerome M. BERGER
6ac5594c4f Add mpc_check and mpc_check_with combinators. 2018-03-23 10:50:09 +01:00
Daniel Holden
ca1404cabb Merge pull request #80 from jeberger/master
Fix for bugs #78 and #79
2018-03-20 08:04:03 -07:00
Jerome M. BERGER
1ac37a9eba Fix a buffer overflow when optimizing or nodes. Fixes #78. 2018-03-20 09:35:44 +01:00
Jerome M. BERGER
9623500d0d Fix stats for or and and nodes. Fixes #79. 2018-03-20 09:34:03 +01:00
Daniel Holden
e4570b2751 Merge pull request #72 from mingodad/less-strcmp
Some small performance enhancements
2017-10-14 11:22:24 -04:00
mingodad
0f7d816e80 Some small performance enhancements, reorder struct members of mpc_parser_t and remove unnecessary calls to strcmp 2017-10-10 14:29:28 +02:00
Daniel Holden
f5b88c0f16 Merge pull request #70 from colin4124/patch-1
Fixed README table format.
2017-06-29 18:14:28 -04:00
Leway Colin
368d32ab8e Fixed README table format. 2017-06-28 13:22:07 +08:00
Daniel Holden
e3d2174db3 Merge pull request #69 from villager10086/fix-gcc-build-error
fix build error with gcc 5.4
2017-03-14 13:12:53 +00:00
chary
6fce66bf29 fix build error with gcc 5.4 2017-03-14 15:20:09 +08:00
Daniel Holden
eedcb6840e Merge pull request #65 from deBhal/master
Add newline to end of ptest.h
2016-11-12 13:14:15 +00:00
Julian de Bhal
00c69094f4 Add newline to end of ptest.h 2016-11-12 15:01:15 +10:00