Yuji Hirose
b330799cd6
Added `name` in SemanticValues
6 years ago
yhirose
2dcdafe3cb
Fixed problem with choice and choice count
6 years ago
yhirose
559836cda1
Removed enabler
6 years ago
yhirose
15c19e4a0f
fix #55
6 years ago
yhirose
b76e4fe305
Keep selected rule id in AST
6 years ago
yhirose
757e81e63d
fix #52 . Changed to allow Action handler taking non const SemanticValues
...
parameter
6 years ago
yhirose
5b3ad705c4
Retab
6 years ago
yhirose
304029a8d3
fix #53
6 years ago
yhirose
452aea18cd
UTF encoding support
6 years ago
yhirose
79a3c75846
Removed 'user defined rule' feature
6 years ago
Mirko
fc03a32d1f
extended parameters for enter and leave callbacks
6 years ago
Mirko
99380c2d72
added method get_rule_names() to parser class
6 years ago
yhirose
6dc7b38b4e
Changed operator= in Definition to return Action
6 years ago
yhirose
5445b5c2bb
fix #41
6 years ago
yhirose
6584bfa5c6
Changed to setup is_token at a better place
6 years ago
yhirose
6f9d19463d
Code cleanup
6 years ago
yhirose
bbd8e68b71
Macro support ( fix #25 )
6 years ago
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>
6 years ago
yhirose
9c3da8d6af
Name refactoring
6 years ago
yhirose
9980eea1cd
Fixed problems with backreference
6 years ago
yhirose
f0d2c529ba
Back reference support
6 years ago
yhirose
a77edadfa7
Added %word rule
6 years ago
yhirose
ca950520ef
Removed the simple interface
6 years ago
yhirose
bfa23401e5
Removed unused function
6 years ago
yhirose
31dd2dae29
Fixed #29
7 years ago
yhirose
e72b630455
Added line_info method on SemanticValues.
7 years ago
yhirose
02c35f7752
Updated copyright and readme.
7 years ago
yhirose
dcdfd9fdb7
Changed ast_to_s to be customizable.
7 years ago
yhirose
deac9d4c42
Code cleanup
7 years ago
yhirose
79f4d90c19
Code cleanup.
8 years ago
yhirose
ff3d947fd4
Added optimize_ast
8 years ago
yhirose
6b63bd48af
Added peg::udl for 'tag' user defined literal.
8 years ago
yhirose
21934dd1ce
Fixed #22 .
8 years ago
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_
8 years ago
hvellyr
f764e9a85d
Fix warning about loss of precission
8 years ago
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.
8 years ago
yhirose
7b78a1c00f
Removed 'user defined rule' feature.
8 years ago
hvellyr
546942e389
Make use of \u2190 char optional
...
VS2010 is not capable of compiling source code with chars beyond the
"current code page" reliably.
8 years ago
hvellyr
8363407768
Fix compiler warnings about "hidden" names
8 years ago
hvellyr
15ce11b594
Fix compiler warning about missing "name" parameter
8 years ago
hvellyr
2b2b171cbd
Fix sign/unsigned compiler warnings
8 years ago
hvellyr
5cac962f18
Fix compiler warning about "old style cast"
8 years ago
hvellyr
5d3d63cf11
Provide explicit copy operator declaration to avoid compiler warning
8 years ago
hvellyr
d95cef6c1b
Fix compiler warnings about unused method parameters
8 years ago
hvellyr
f62a726166
Avoid C++14 feature in peglib.h
...
... which allows to use peglib.h in a C++11 only environment.
8 years ago
hvellyr
86f903b65e
Fix compiler warning about unnecessary ";"
...
... on clang-3.7
8 years ago
yhirose
80f822ac59
Fix token problem in AST
9 years ago
yhirose
ae400aa218
Supported `←`.
9 years ago
yhirose
5b88443270
Major change in the way to handle token boundary.
9 years ago
yhirose
91fe3b755c
Code cleanup.
9 years ago