Commit Graph

230 Commits

Author SHA1 Message Date
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
Daniel Holden
f0260810f0 Avoided some ANSI C warnings and deleted generated error from parse 2016-11-08 09:59:50 +00:00
Sean Usher
2dc31a4c34 Clean up grammar test changes 2016-11-07 20:32:56 -08:00
Sean Usher
7380584a6f Add test to ensure that referencing a non-existent rule in another rule returns the proper error 2016-11-07 20:30:14 -08:00
Sean Usher
71af0741db Handle the case where the language definition references a non-existant rule, and ensure it fails with 'Unknown Parser' 2016-11-07 19:28:52 -08:00
Daniel Holden
37c12b1d43 Merge branch 'master' of github.com:orangeduck/mpc 2016-09-17 15:41:34 +01:00
Daniel Holden
d6375f813d Added C++ extern declaration 2016-09-17 15:41:17 +01:00
Daniel Holden
724e9a35ff Merge pull request #57 from Forty-Bot/master
Fixed uninitialized terminator
2016-07-04 18:36:42 +01:00
Sean Anderson
43b3fdbd8a Fixed uninitialized terminator 2016-07-04 13:33:23 -04:00
Daniel Holden
4080345c4d Merge pull request #56 from Forty-Bot/nparse
Add function to only parse n bytes from input
2016-06-30 16:41:47 +01:00
Sean Anderson
570ba8907a Updated mpc_input_new_string to reflect changes in mpc 2016-06-29 17:31:31 -04:00
Sean Anderson
f87ce67e70 Merge branch 'master' of https://github.com/orangeduck/mpc into nparse 2016-06-29 16:23:31 -04:00
Sean Anderson
4156d72642 Added function to only parse n bytes from input 2016-06-29 14:17:46 -04:00
Daniel Holden
2a19e4c451 Fixed folding of single child asts with tags 2016-06-11 14:11:19 +01:00
Daniel Holden
14001ad332 Added test for partial grammar definition 2016-06-11 12:59:55 +01:00
Daniel Holden
5f9863ffcd Merge pull request #50 from petermlm/master
Tree Traversal
2016-06-05 15:26:43 +01:00
petermlm
913cc58824 Made traversal free 2016-05-31 22:32:24 +01:00
Daniel Holden
b93399da33 Merge pull request #52 from Mr-Kumar-Abhishek/dev
Minor patches to handle binaries in the repo
2016-05-04 10:44:15 +01:00
Abhishek Kumar
e032b410b2 Remove foobar and tree_traversal too while doing 'make clean' 2016-05-04 10:32:02 +05:30
Abhishek Kumar
258cf5002b .gitignore examples/tree_traversal 2016-05-04 10:14:59 +05:30
petermlm
38764e5ecb Merge branch 'tree_trav' 2016-04-19 23:27:16 +01:00
petermlm
0b287e6252 Indentation 2016-04-19 23:26:52 +01:00
petermlm
0037648c49 Identation 2016-04-19 23:26:20 +01:00
petermlm
e99b35796c Made example for tree traversal 2016-04-19 23:21:39 +01:00
petermlm
719ca68b6c Implemented pre order ast traversal 2016-04-19 23:14:00 +01:00
petermlm
9ac854ad5a Made post order tree traversal 2016-04-19 22:27:32 +01:00
Daniel Holden
317c2841dd Merge pull request #48 from petermlm/master
Get children by tag
2016-04-18 10:11:27 +01:00
petermlm
aa17e0723e 2 space indentation 2016-04-17 18:51:04 +01:00
petermlm
af6489125f Merge branch 'child_by_tag' 2016-04-17 18:46:01 +01:00