Commit Graph

152 Commits

Author SHA1 Message Date
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
347113d4fd Code cleanup 2019-08-27 20:09:07 -04:00
yhirose
3482a08465 Fix #67 2019-08-27 20:08:48 -04:00
yhirose
4d0b2b3591 Fix #66 2019-08-27 12:07:35 -04:00
yhirose
b7da359bac Code cleanup 2019-08-27 08:28:03 -04:00
yhirose
d75ced2408 Fix #68 2019-08-27 02:44:04 -04:00
yhirose
2d276c8cd9 Fix #63 2019-07-09 21:49:15 -04:00
yhirose
2dcdafe3cb Fixed problem with choice and choice count 2019-02-12 22:50:23 -05:00
yhirose
15c19e4a0f fix #55 2018-11-29 20:19:46 -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
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
yhirose
ed8a1bd7d9 Better Unicode handling 2018-09-13 22:04:46 -04:00
yhirose
fe3ae84736 Fixed build errors 2018-09-04 21:06:38 -04:00
yhirose
4c8415c054 Added another test case for %whitespace 2018-08-02 21:46:17 -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
bbd8e68b71 Macro support (fix #25) 2018-07-27 17:16:35 -04: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
0dfe7a22c1 Use catch2 for unit testing 2018-05-28 21:06:23 -04:00
yhirose
e72b630455 Added line_info method on SemanticValues. 2017-11-03 22:27:08 -04:00
yhirose
ebfafc3947 Removed Visual Studio solution and project files. 2017-08-25 09:05:12 -04:00
yhirose
21934dd1ce Fixed #22. 2016-10-27 20:28:03 -04:00
hvellyr
e562f51f63 No need for pthread lib in examples and tests 2016-06-07 11:51:12 +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
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
d95cef6c1b Fix compiler warnings about unused method parameters 2016-06-01 16:27:24 +02:00
hvellyr
c3c6037241 Enhance CMake files to set warning level high(er) and set C++14 flags 2016-06-01 16:27:23 +02:00
hvellyr
d0c6cd55ad Enabling testing in the CMakeList
... which allows to use "make test" and/or "ctest -V"
2016-06-01 16:27:23 +02:00
hvellyr
b031727fa2 Cmake 2.8 is more than sufficient
... for the purposes of this project and makes testing on older
platforms easier.  In addition travis-ci has by default only cmake
2.8.
2016-06-01 16:27:23 +02: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
50ea1858c1 Added unit test for missing rules. 2015-12-31 19:41:37 -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
33978023cf Added automatic whitespace skipping feature. 2015-11-26 16:48:00 -05:00
yhirose
49c81a5f59 Added more unit tests. 2015-11-26 16:46:37 -05:00
yhirose
5b9daaf090 Restored before/after handlers. 2015-11-17 06:10:32 -05:00
yhirose
b9c9216788 Changed namespace/class names. 2015-08-10 16:37:56 -04:00
yhirose
a3cfd1b8ad Handled UTF-8 codes from 0x80 as valid identifier codes. 2015-08-08 20:30:05 -04:00
yhirose
6b690dd3cb Fixed backtrack problem. 2015-08-05 22:52:08 -04:00
yhirose
315121e149 Upgrade vcxproj to 2015. 2015-08-04 13:05:16 -04:00
yhirose
02957c3668 Fixed build errors. 2015-07-31 19:07:20 -04:00
yhirose
e778187df8 Fixed crash. 2015-07-30 18:47:27 -04:00
yhirose
c9b5f0ac3b Added str() in SemanticValues. 2015-06-16 00:43:08 -04:00
yhirose
42156c35f3 Simplefiled API. 2015-06-16 00:25:01 -04:00
yhirose
2aa60699be Simplefied code. 2015-06-15 23:26:49 -04:00
yhirose
0744fa75f6 Removed parameter from enable_packrat_parsing. 2015-06-15 21:29:33 -04:00
yhirose
9765e095ab Added semantic predicate support. 2015-06-15 16:07:25 -04:00
yhirose
4eab716a6a Fixed User rule problem. 2015-06-15 13:47:59 -04:00
yhirose
c2e19cfd01 Added definition duplicates check. 2015-06-13 00:57:45 -04:00
yhirose
67de659288 Added left recursice detection. 2015-06-13 00:38:38 -04:00
yhirose
b5eec078aa Commented out the current 'predicate feature' implementation. 2015-06-12 18:57:58 -04:00
yhirose
50768de875 Added Ignore operator. 2015-06-12 18:52:26 -04:00
yhirose
fdf10521c6 Added a unit test. 2015-06-12 18:13:20 -04:00
yhirose
927ecc5c37 Fixed build error. 2015-06-12 15:27:55 -04:00
yhirose
05ca1961b4 Added token check logic. 2015-06-05 13:28:38 -04:00
yhirose
37fe8bd1ff Fixed build errors. 2015-06-05 11:51:45 -04:00
yhirose
682417b410 Removed 'typedef Definition rule'. 2015-06-05 08:54:02 -04:00
yhirose
ab3d8b0d0e Code cleanup and fixed build error. 2015-06-04 19:06:37 -04:00
yhirose
e56062715a Improved AST support. 2015-06-04 11:41:14 -04:00
yhirose
2badaa40a0 Cleanup code format. 2015-05-19 09:07:27 -04:00
yhirose
738fe53e39 Fixed number parsing problem. 2015-04-25 08:11:06 +09:00
yhirose
8bac879ff9 Added the predicate control feature. 2015-04-08 12:02:26 -04:00
yhirose
faa70f1f37 Updated the 'catch' c++ unit test framework. 2015-04-08 12:00:35 -04:00
yhirose
e30b4a281f Name refactoring. 2015-03-09 14:58:43 -04:00
yhirose
4e79b2de95 Added 'named capture'. Changed to cache user data. 2015-03-03 22:04:14 -05:00
yhirose
1fc0a6819e Updated public interface. 2015-03-02 21:52:09 -05:00
yhirose
9fee7187fb Clean up. 2015-03-02 17:36:10 -05:00
yhirose
d5e28fff94 Fixed performance problem. 2015-03-02 17:35:55 -05:00
yhirose
d93a007ef0 Moved 'choice' property to SemanticValues. 2015-02-26 22:40:00 -05:00
yhirose
a860218d4f Working on the parckrat parsing support. 2015-02-26 08:27:05 -05:00
yhirose
b19d37f052 Improving performance... 2015-02-25 19:31:00 -05:00
yhirose
64e7274b1d Added octal/hex number support. 2015-02-22 22:23:08 -05:00
yhirose
3d3af85bc7 Changed the semantic values interface. 2015-02-21 19:38:30 -05:00
yhirose
f7e7e308ed Changed to allow 'mutable' lambda function as semantic action. Closed #2. 2015-02-18 19:41:18 -05:00
yhirose
6cc1534257 Fixed problem in unit test. 2015-02-18 19:36:27 -05:00
yhirose
9c872e2d5d Added 'ignore' operator. 2015-02-18 18:00:11 -05:00
yhirose
56daf08d5b Changed the capture operator and made the anchor operator. 2015-02-17 22:35:07 -05:00
yhirose
f0351a9909 Fixed sample. 2015-02-15 22:21:18 -05:00
yhirose
d2ad29359e Added 'anchor' support. Removed implecit cast operators from 'any'. 2015-02-15 20:11:02 -05:00
yhirose
81ca85cba5 Added simple interface. 2015-02-15 17:52:39 -05:00
yhirose
0643f44b03 Changed 'match' back to 'parse'. 2015-02-14 12:58:17 -05:00
yhirose
3f639e37f0 Changed the interfaces. 2015-02-14 10:13:10 -05:00
yhirose
6e8ea2b471 Changed interface of parse in Definition. 2015-02-14 08:52:52 -05:00
yhirose
f9c6a67ea6 Added simple error handling code. 2015-02-12 19:48:58 -05:00
yhirose
4202e6d111 Changed to allow simpler notation in actions. 2015-02-11 20:31:11 -05:00
yhirose
8acb0e2822 Changed to be able to associate actions to the prioritized choice. 2015-02-11 19:48:55 -05:00
yhirose
5a16f53a71 Fixed backtracking problem with the prioritized choice. 2015-02-09 20:13:46 -05:00
yhirose
d386f2f3b9 Major refactoring. 2015-02-09 17:12:59 -05:00
yhirose
9cb926f7a0 Work in progress. 2015-02-09 12:01:59 -05:00