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
Jerry Evans
be0ad37263
VS2013 requires return type for auto
9 years ago
yhirose
fe9141fd0f
Removed noexcept.
9 years ago
yhirose
21f555639e
Code cleanup.
9 years ago
yhirose
568bf15ed3
Fixed problems with the %whitespace rule.
9 years ago
yhirose
a9cea16325
Renamed 'before/after' to 'enter/exit'.
9 years ago
yhirose
69ede706f0
Fixed build errors. Switched to CMake build system completely.
9 years ago
yhirose
f33e76249a
Added trace feature.
9 years ago
yhirose
1ac16f3184
Fixed incorrect semantic values with NotPredicate.
9 years ago
yhirose
80d1488b42
Fixed ast dump format problem.
9 years ago
Yuji Hirose
3f5d54f811
Removed print_ast, and added ast_to_s.
9 years ago
yhirose
a7444fa83b
Fixed #8 .
9 years ago
yhirose
33978023cf
Added automatic whitespace skipping feature.
9 years ago
Jerry Evans
05ac20f799
Parenthesize std::min for windows.h macro collision avoidance.
9 years ago
Jerry Evans
c27602172f
Fix for ancient min/max macros in windows.h
...
Disable constexpr for VS2013
Guard against older versions of VC++
9 years ago
yhirose
1247271966
Improved error report.
9 years ago
yhirose
5b9daaf090
Restored before/after handlers.
9 years ago
yhirose
0e23f8f0b2
Removed unnecessary code.
9 years ago
yhirose
337741e17e
Fixed build errors.
9 years ago
yhirose
b9c9216788
Changed namespace/class names.
9 years ago
yhirose
23737a716b
Fixed warnings.
9 years ago
yhirose
a3cfd1b8ad
Handled UTF-8 codes from 0x80 as valid identifier codes.
9 years ago
yhirose
b035706a0b
Fixed compile errors with g++ 5.1.
9 years ago
yhirose
5ebd01c846
Code cleanup.
9 years ago
yhirose
6fefd8ea84
Code cleanup.
9 years ago