Commit Graph

47 Commits

Author SHA1 Message Date
Bob Tolbert
b64b53aeef
clean up warnings in peglib.h sprintf on Visual Studio (#243) 2022-08-20 13:17:31 -04:00
yhirose
5934f0abba Resolve #228 2022-07-01 22:15:21 -04:00
NotAPenguin
fed85fe14d
Add cmake toggle to disable tests (#219)
* disable testing

* add cmake option for building tests

* switch default behaviour for tests to ON
2022-06-25 08:21:25 -04:00
yhirose
0aec248de3 Changed to use gtest 2021-08-19 02:29:11 -04:00
yhirose
3823af3ec1 Revert "Fixed problems in CMakeLists.txt"
This reverts commit 0606cd4bb3.
2021-08-17 23:40:36 +00:00
yhirose
0606cd4bb3 Fixed problems in CMakeLists.txt 2021-08-17 19:23:31 -04:00
yhirose
f5af8e44dc Changed to use Catch2 v3 2021-08-17 19:15:12 -04:00
yhirose
1c00fa77fa Fixed warnings 2021-01-19 12:03:06 -05:00
yhirose
b26e2477ff C++17 support 2020-11-09 13:18:38 -05:00
yhirose
14305f9f53 Fix #111 2020-06-20 12:43:15 +00:00
yhirose
aefeb3ae35 Fix #118 2020-06-20 12:20:52 +00:00
yhirose
af8f0082fc Combinators with AST action handler 2020-06-07 21:21:17 -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
yhirose
51ed96c8f2 Fixed warning with enum value in switch statement 2020-04-18 21:12:55 -04:00
Alexis LG
8cdc32d79b
Update CMakeLists.txt
Adding "install" to CMake
2020-03-15 19:37:42 +01:00
yhirose
f2fda77f5a Fixed warnings 2020-02-25 11:34:19 -05:00
yhirose
3b968d2595 Disabled pl0 buld due to the linker problem in Travis CI 2020-01-24 23:35:25 -05:00
yhirose
1a40e539d1 Updated cmake files 2020-01-24 22:54:03 -05:00
yhirose
e9d73c48ca Added '-Wno-c++2a-compat' 2020-01-24 19:58:43 -05:00
yhirose
0d601b4b2c Include lint in CMakeList.txt 2020-01-23 18:29:13 -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
15a08da1b2 Updated peglint and added peglint documentation 2018-08-03 23:47:25 -04:00
yhirose
7c1e1751d9 Added LLVM support to PL/0 sample 2017-08-07 23:44:28 -04:00
yhirose
41e3360483 Working in progress on fixing travis-ci error. 2017-06-19 14:04:44 -04:00
yhirose
a85d18da91 Working in progress on fixing travis-ci error... 2017-06-19 13:33:40 -04:00
yhirose
14c0651f1f Removed language/culebra 2017-06-08 23:17:15 +09: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
e562f51f63 No need for pthread lib in examples and tests 2016-06-07 11:51:12 +02:00
hvellyr
45db14ebd7 Don't treat warnings as errors 2016-06-07 11:51:12 +02:00
hvellyr
58b0669e55 Remove left over c++1y definition desturbing MSVC 2016-06-07 11:51:03 +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
69ede706f0 Fixed build errors. Switched to CMake build system completely. 2015-11-30 17:26:06 -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
yhirose
2b2a4f3816 Moved files. 2015-08-05 10:28:07 -04:00
yhirose
4238617393 Moving files. 2015-08-05 08:59:25 -04:00
yhirose
38ac34d1ad Added PL/0 sample. 2015-07-30 17:26:06 -04:00
yhirose
552c7012f4 Changed PEGLIB_HAS_CONSTEXPR_SUPPORT TO BE PEGLIB_NO_CONSTEXPR_SUPPORT. 2015-07-30 17:23:31 -04:00
yhirose
5d6755ff64 Added command-line debugger support. 2015-07-28 06:47:18 -04:00
Yuji Hirose
923dc4c633 Fixed build problem on raspberry pi. 2015-07-16 20:21:26 -04:00
yhirose
85932059b9 Added peglint playground. 2015-07-15 17:26:01 -04:00
yhirose
cfcba98e8f Added additional files to CMakeLists.txt. 2015-06-12 21:06:54 -04:00
yhirose
67b241caba Removed examples from CMakeLists.txt. 2015-05-28 19:18:13 -04:00
yhirose
d35c460cc1 Added CMakeLists.txt. 2015-04-16 20:10:25 -04:00