Commit Graph

194 Commits

Author SHA1 Message Date
Peter Würtz
4676115e57
Fix maybe uninitialized warning / error 2020-01-15 16:03:29 +01:00
yhirose
be470f9332 Fix #71 2019-11-29 00:57:45 -05:00
Francesco Guastella
1afa4988bc Replace peg::any with std::any (when C++17 is available) 2019-11-22 13:25:42 +01:00
yhirose
3482a08465 Fix #67 2019-08-27 20:08:48 -04:00
yhirose
9ee03a9211 Fixed build error with VS2015 2019-08-27 17:13:27 -04:00
yhirose
4d0b2b3591 Fix #66 2019-08-27 12:07:35 -04:00
yhirose
d75ced2408 Fix #68 2019-08-27 02:44:04 -04:00
yhirose
5f3a5a82e1 Fix #69 2019-08-24 00:23:09 -04:00
yhirose
2d276c8cd9 Fix #63 2019-07-09 21:49:15 -04:00
Mura
f3e88afd39
Update peglib.h
This '#else' directive does not have such extra condition in C++.
2019-04-26 09:00:38 +09:00
Yuji Hirose
55add1dacb Fix #60 2019-04-08 11:40:27 -04:00
Yuji Hirose
57f866c6ca Fixed build error 2019-02-14 10:17:21 -05:00
Yuji Hirose
b330799cd6 Added name in SemanticValues 2019-02-14 10:11:12 -05:00
yhirose
2dcdafe3cb Fixed problem with choice and choice count 2019-02-12 22:50:23 -05:00
yhirose
559836cda1 Removed enabler 2019-01-11 18:20:04 -05:00
yhirose
15c19e4a0f fix #55 2018-11-29 20:19:46 -05:00
yhirose
b76e4fe305 Keep selected rule id in AST 2018-11-16 13:36:52 -05:00
yhirose
757e81e63d fix #52. Changed to allow Action handler taking non const SemanticValues
parameter
2018-10-07 09:25:12 -04:00
yhirose
5b3ad705c4 Retab 2018-10-06 22:29:51 -04:00
yhirose
304029a8d3 fix #53 2018-10-06 17:11:51 -04:00
yhirose
c006918329 Merge branch 'unicode' 2018-09-16 12:58:10 -04:00
yhirose
452aea18cd UTF encoding support 2018-09-16 12:57:03 -04:00
yhirose
79a3c75846 Removed 'user defined rule' feature 2018-09-13 22:44:04 -04:00
Mirko
fc03a32d1f extended parameters for enter and leave callbacks 2018-09-03 23:01:22 +02:00
Mirko
99380c2d72 added method get_rule_names() to parser class 2018-09-03 21:20:05 +02:00
yhirose
6dc7b38b4e Changed operator= in Definition to return Action 2018-08-03 21:07:42 -04:00
yhirose
5445b5c2bb fix #41 2018-07-29 13:49:00 -04:00
yhirose
6584bfa5c6 Changed to setup is_token at a better place 2018-07-28 21:51:11 -04:00
yhirose
6f9d19463d Code cleanup 2018-07-27 22:47:00 -04:00
yhirose
bbd8e68b71 Macro support (fix #25) 2018-07-27 17:16:35 -04:00
Remigiusz Kołłątaj
ba6efeae90 Backporting "undefined reference to peg::enabler" fix to all versions older than 5.0.0; Fix tests to compile with clang 3.5.
Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@mobica.com>
2018-07-22 10:57:46 +02:00
yhirose
9c3da8d6af Name refactoring 2018-07-20 22:56:13 -04:00
yhirose
9980eea1cd Fixed problems with backreference 2018-07-20 22:09:54 -04:00
yhirose
f0d2c529ba Back reference support 2018-07-13 17:51:20 -04:00
yhirose
a77edadfa7 Added %word rule 2018-07-13 17:26:57 -04:00
yhirose
ca950520ef Removed the simple interface 2018-07-12 19:03:57 +02:00
yhirose
bfa23401e5 Removed unused function 2018-05-28 21:06:38 -04:00
yhirose
31dd2dae29 Fixed #29 2018-01-04 19:36:34 -05:00
yhirose
e72b630455 Added line_info method on SemanticValues. 2017-11-03 22:27:08 -04:00
yhirose
02c35f7752 Updated copyright and readme. 2017-08-25 09:04:02 -04:00
yhirose
dcdfd9fdb7 Changed ast_to_s to be customizable. 2017-08-17 01:39:30 -04:00
yhirose
deac9d4c42 Code cleanup 2017-06-08 23:03:21 +09:00
yhirose
79f4d90c19 Code cleanup. 2017-04-14 21:57:28 -04:00
yhirose
ff3d947fd4 Added optimize_ast 2017-03-28 22:50:05 -04:00
yhirose
6b63bd48af Added peg::udl for 'tag' user defined literal. 2017-03-25 18:28:15 -04:00
yhirose
21934dd1ce Fixed #22. 2016-10-27 20:28:03 -04:00
hvellyr
bc9234a25f Fix compiler warning about reserved identifier
Warning was (on clang-3.7):

/Users/gck/dev/cpp-peglib/test/../peglib.h:9:9: warning: macro name is a
      reserved identifier [-Wreserved-id-macro]
#define _CPPPEGLIB_PEGLIB_H_
2016-06-07 11:51:11 +02:00
hvellyr
f764e9a85d Fix warning about loss of precission 2016-06-07 11:51:07 +02:00
hvellyr
47f8eb171c Fix compiler warnings about incomplete override functions
The warning on VS2013 was:

warning C4266: 'void peg::Ope::Visitor::visit(peg::Whitespace &)' : no
  override available for virtual member function from base
  'peg::Ope::Visitor'; function is hidden

I'm surprised that this warning doesn't happen on gcc/clang though.
2016-06-07 11:50:56 +02:00
yhirose
7b78a1c00f Removed 'user defined rule' feature. 2016-06-02 17:52:21 -04:00