Commit Graph

169 Commits

Author SHA1 Message Date
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
hvellyr
546942e389 Make use of \u2190 char optional
VS2010 is not capable of compiling source code with chars beyond the
"current code page" reliably.
2016-06-01 16:27:24 +02:00
hvellyr
8363407768 Fix compiler warnings about "hidden" names 2016-06-01 16:27:24 +02:00
hvellyr
15ce11b594 Fix compiler warning about missing "name" parameter 2016-06-01 16:27:24 +02:00
hvellyr
2b2b171cbd Fix sign/unsigned compiler warnings 2016-06-01 16:27:24 +02:00
hvellyr
5cac962f18 Fix compiler warning about "old style cast" 2016-06-01 16:27:24 +02:00
hvellyr
5d3d63cf11 Provide explicit copy operator declaration to avoid compiler warning 2016-06-01 16:27:24 +02:00
hvellyr
d95cef6c1b Fix compiler warnings about unused method parameters 2016-06-01 16:27:24 +02:00
hvellyr
f62a726166 Avoid C++14 feature in peglib.h
... which allows to use peglib.h in a C++11 only environment.
2016-06-01 16:27:24 +02:00
hvellyr
86f903b65e Fix compiler warning about unnecessary ";"
... on clang-3.7
2016-06-01 16:27:23 +02:00
yhirose
80f822ac59 Fix token problem in AST 2016-01-24 11:12:50 -05:00
yhirose
ae400aa218 Supported . 2016-01-23 22:15:15 -05:00
yhirose
5b88443270 Major change in the way to handle token boundary. 2016-01-23 22:07:25 -05:00
yhirose
9ce4597ef6 Merge branch 'master' of https://github.com/yhirose/cpp-peglib 2015-12-31 19:44:02 -05:00
yhirose
91fe3b755c Code cleanup. 2015-12-31 19:42:14 -05:00
Jerry Evans
be0ad37263 VS2013 requires return type for auto 2015-12-08 16:46:31 +00:00
yhirose
fe9141fd0f Removed noexcept. 2015-12-07 17:33:10 -05:00
yhirose
21f555639e Code cleanup. 2015-12-06 23:01:27 -05:00
yhirose
568bf15ed3 Fixed problems with the %whitespace rule. 2015-12-03 18:59:12 -05:00
yhirose
a9cea16325 Renamed 'before/after' to 'enter/exit'. 2015-12-02 22:52:18 -05:00
yhirose
69ede706f0 Fixed build errors. Switched to CMake build system completely. 2015-11-30 17:26:06 -05:00
yhirose
f33e76249a Added trace feature. 2015-11-29 23:07:02 -05:00
yhirose
1ac16f3184 Fixed incorrect semantic values with NotPredicate. 2015-11-29 13:07:06 -05:00
yhirose
80d1488b42 Fixed ast dump format problem. 2015-11-29 11:06:28 -05:00
Yuji Hirose
3f5d54f811 Removed print_ast, and added ast_to_s. 2015-11-27 15:32:17 -05:00
yhirose
a7444fa83b Fixed #8. 2015-11-26 16:48:00 -05:00