Commit Graph

185 Commits

Author SHA1 Message Date
yhirose
8643927c99 Fixed error report problems 2021-02-04 10:45:18 -05:00
yhirose
d2a2eb3cf6 Cut operator support 2021-01-26 13:45:04 -05:00
yhirose
80b20a091f Resolve #137 2021-01-21 20:56:05 -05:00
yhirose
45ba08b576 Added unit test 2021-01-20 16:29:28 -05:00
yhirose
82512d5002 Added more unit tests 2021-01-18 18:06:54 -05:00
yhirose
0dab91d8d9 Throw operator support 2021-01-15 20:19:43 -05:00
yhirose
1442e3e21f Unicode char support 2021-01-15 17:27:35 -05:00
yhirose
8ad71c4adc Fixed problem with %recover 2021-01-15 16:51:36 -05:00
yhirose
8dc6a287f8 Added error recovery feature 2021-01-13 21:35:47 -05:00
yhirose
9ad70096c8 Another infinite loop grammar detection. Fix #133 2021-01-09 15:12:01 -05:00
yhirose
b26e2477ff C++17 support 2020-11-09 13:18:38 -05:00
yhirose
b92da07bed Fix #128 2020-11-09 12:06:48 -05:00
yhirose
b3b29ce8f3 Fix #122 2020-08-07 13:42:51 -04:00
yhirose
0061f393de Fix #121 2020-08-07 10:21:47 -04:00
peoro
ad1a6d27da Fix support to custom AST node types
Fixes #116
2020-06-18 16:17:27 +02:00
yhirose
ff9e5d6ea3 Fix #112 2020-06-08 22:55:26 -04:00
yhirose
af8f0082fc Combinators with AST action handler 2020-06-07 21:21:17 -04:00
yhirose
c1f087a91e Added enable_packrat_parsing to precedence expression parsing tests 2020-06-06 22:47:50 -04:00
yhirose
580721aa46 Fix #107 2020-06-01 19:50:46 -04:00
yhirose
072cdb6d23 Fix #109 2020-05-31 23:46:46 -04:00
yhirose
3c58f26635 Updated 'Semantic predicate test' 2020-05-20 14:08:32 -04:00
yhirose
fdfd1f4267 Fixed warnings 2020-03-29 17:01:46 -04:00
yhirose
c416d84fea Regex-like repetition support. Fix #95 2020-03-28 22:56:17 -04:00
yhirose
5b3d95e0a1 Fix #90 2020-02-11 16:50:26 -05:00
yhirose
2c7d94761f Updated README 2020-02-07 21:52:54 -05:00
yhirose
375794e344 Support expression parsing in macro 2020-02-07 17:36:47 -05:00
yhirose
9bdb577aaf Split test.cc 2020-02-07 13:56:08 -05:00
yhirose
9b89b19949 Updated README and examples 2020-02-07 11:55:21 -05:00
yhirose
038bc06343 Precedence climbing feature support 2020-02-07 10:58:34 -05:00
yhirose
2180657eea Added Negated Characgter Class 2020-01-27 00:44:00 -05:00
yhirose
3dc0205ffa Handle an invalid escape sequence char 2020-01-26 23:07:12 -05:00
yhirose
35d2d201e1 Updated CmakeLists.txt for test 2020-01-26 22:36:34 -05:00
yhirose
c5e356d804 Implemented infinite loop detector 2020-01-24 20:57:37 -05: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
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