Commit Graph

72 Commits

Author SHA1 Message Date
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
847b7e9fe3 Fixed peglint trace token format problem 2021-01-08 14:01:21 -05:00
yhirose
b26e2477ff C++17 support 2020-11-09 13:18:38 -05:00
yhirose
19c83811ee Added --opt to peglint 2020-05-25 22:48:42 -04:00
yhirose
19c6c2615c Name refactoring 2020-05-25 17:31:22 -04:00
yhirose
370067f013 Added filters parameter to peglint and playground 2020-05-24 22:18:18 -04:00
Xinzhao Zhu
f58fd19f52 Use CMake's Threads library to provide '-pthread` for Linux
For linux platform, we may use the Threads library to provide
the option `-pthread` when the program uses multiple thread. This
solution is portable for WSL2/Linux and other disturbuiton.
2020-05-17 22:55:56 +08:00
bnjf
6137e2a340
Fix "terminate called after throwing an instance of 'std::system_error'"
This is a re-fix.  The missing pthread lib was fixed in 469a61f044, but then unfixed in 06fc879371.
2020-04-25 00:52:03 +10:00
yhirose
95f9140464 clangformat 2020-03-29 17:03:47 -04:00
yhirose
fdfd1f4267 Fixed warnings 2020-03-29 17:01:46 -04:00
yhirose
fe2d67fc88 Improved peglint trace format 2020-01-29 11:36:19 -05:00
yhirose
1a40e539d1 Updated cmake files 2020-01-24 22:54:03 -05:00
yhirose
be3b09f704 Fixed typo 2020-01-24 15:12:31 -05:00
yhirose
06fc879371 Removed server mode from peglint and updated documentation 2019-02-09 08:55:28 -05:00
Yuji Hirose
e12ab41b40 Fixed problem with JSON invalid characters 2019-02-08 15:19:40 -05:00
Yuji Hirose
47e51d3651 Fixed problems in server mode of peglint 2019-02-08 11:36:29 -05:00
yhirose
469a61f044 Fixed 'std::call_once' crash problem with peglint on Ubuntu. 2018-09-01 16:05:00 +00:00
Yuji Hirose
91bf45b7d4 Fix #45 2018-08-30 13:34:09 -04:00
yhirose
15a08da1b2 Updated peglint and added peglint documentation 2018-08-03 23:47:25 -04:00
yhirose
f46737acbf Added --source option 2018-08-02 20:51:11 -04:00
yhirose
ebfafc3947 Removed Visual Studio solution and project files. 2017-08-25 09:05:12 -04:00
yhirose
803335164d Changed minimum target to be 'c++11'. 2016-06-08 22:17:07 -04:00
hvellyr
f98f8697c6 Add test support for windows MSVC 2015 on appveyor
- build the code with source and execution charset set to utf-8 (required
  for unicode chars in the source code)

- Example/culebra/linenoise.hpp requires being build with UNICODE on windows

  The WIN32 part of that code actually is written against wchar support
  only (e.g. wsprintf, wcstol, ...); but some pieces requires the UNICODE def
  being set explicitely (e.g. GetEnvironmentVariable).

- don't build lint and language subfolders on windows at all (for now)
2016-06-07 11:51:12 +02:00
hvellyr
1e47348daf Fix compiler warnings about "missing variable declaration" 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
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
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
69ede706f0 Fixed build errors. Switched to CMake build system completely. 2015-11-30 17:26:06 -05:00
yhirose
30da6961d4 Updated usage for peglint. 2015-11-29 23:19:09 -05:00
yhirose
8ce03face0 Added README for PEG lint. 2015-11-29 23:16:51 -05:00
yhirose
f33e76249a Added trace feature. 2015-11-29 23:07:02 -05:00
yhirose
80d1488b42 Fixed ast dump format problem. 2015-11-29 11:06:28 -05:00
yhirose
59c7ab94ac Fixed the build error with peglint. 2015-11-29 10:26:27 -05:00
Yuji Hirose
8fd93d855f Moved 'online lint' functionality to peglint. 2015-11-27 15:53:32 -05:00
Yuji Hirose
3f5d54f811 Removed print_ast, and added ast_to_s. 2015-11-27 15:32:17 -05:00
Yuji Hirose
444398d1bb Added server mode. 2015-11-27 14:24:24 -05:00
Yuji Hirose
adcd259268 Changed to show AST results. 2015-11-27 13:36:27 -05:00
yhirose
337741e17e Fixed build errors. 2015-08-27 22:26:34 -04:00
yhirose
b9c9216788 Changed namespace/class names. 2015-08-10 16:37:56 -04:00
yhirose
6b690dd3cb Fixed backtrack problem. 2015-08-05 22:52:08 -04:00
yhirose
2b2a4f3816 Moved files. 2015-08-05 10:28:07 -04:00
yhirose
aa78055654 Fixed problem with AST. 2015-08-04 11:27:37 -04:00
yhirose
de1f7ebad6 Fixed snprintf compile error with VS2015. 2015-08-04 11:26:41 -04:00
yhirose
02957c3668 Fixed build errors. 2015-07-31 19:07:20 -04:00
Yuji Hirose
56ebcf09bf Fixed source code format. 2015-07-30 07:52:58 -04:00
yhirose
0ddb5682af Code cleanup. 2015-07-29 21:48:44 -04:00