Commit Graph

55 Commits

Author SHA1 Message Date
yhirose
23c080af49 Removed peg::parse_error and introduced predicate action 2022-07-01 15:05:04 -04:00
yhirose
199f788ad8 Added example/indent.cc 2022-04-02 08:12:48 -04:00
yhirose
0aec248de3 Changed to use gtest 2021-08-19 02:29:11 -04:00
yhirose
80b20a091f Resolve #137 2021-01-21 20:56:05 -05:00
yhirose
b26e2477ff C++17 support 2020-11-09 13:18:38 -05:00
yhirose
fdfd1f4267 Fixed warnings 2020-03-29 17:01:46 -04:00
yhirose
9b89b19949 Updated README and examples 2020-02-07 11:55:21 -05:00
yhirose
1a40e539d1 Updated cmake files 2020-01-24 22:54:03 -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
ebfafc3947 Removed Visual Studio solution and project files. 2017-08-25 09:05:12 -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
5cac962f18 Fix compiler warning about "old style cast" 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
hvellyr
af2b04c733 Remove example app not existing in source code 2016-05-29 23:20:16 +02:00
yhirose
5b88443270 Major change in the way to handle token boundary. 2016-01-23 22:07:25 -05:00
yhirose
69ede706f0 Fixed build errors. Switched to CMake build system completely. 2015-11-30 17:26:06 -05:00
Yuji Hirose
8fd93d855f Moved 'online lint' functionality to peglint. 2015-11-27 15:53:32 -05:00
yhirose
33978023cf Added automatic whitespace skipping feature. 2015-11-26 16:48:00 -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
d834a7c4ce Changed to use C++ raw string. 2015-08-06 23:09:37 -04:00
yhirose
4238617393 Moving files. 2015-08-05 08:59:25 -04:00
yhirose
21a72abfe2 Code cleanup. 2015-08-04 23:26:02 -04:00
yhirose
aa78055654 Fixed problem with AST. 2015-08-04 11:27:37 -04:00
yhirose
5022bef3d7 Added symbol table to PL/0. 2015-08-03 17:53:35 -04:00
yhirose
5e237895f8 Code cleanup. 2015-07-31 21:30:21 -04:00
yhirose
65d1d99b2b Added AstOptimizer. 2015-07-31 13:06:31 -04:00
yhirose
dba1c42826 Fixed a warning message. 2015-07-30 18:47:13 -04:00
yhirose
38ac34d1ad Added PL/0 sample. 2015-07-30 17:26:06 -04:00
yhirose
bca3785c89 Converted vcxproj files for vc++ 2015. 2015-07-29 17:57:43 -04:00
yhirose
42156c35f3 Simplefiled API. 2015-06-16 00:25:01 -04:00
yhirose
427bbda5a7 Retab calc3.cc. 2015-06-14 08:06:09 -04:00
yhirose
46470071f3 Removed optional parameter from enable_ast(). 2015-06-12 18:12:54 -04:00
yhirose
682417b410 Removed 'typedef Definition rule'. 2015-06-05 08:54:02 -04:00
yhirose
e56062715a Improved AST support. 2015-06-04 11:41:14 -04:00
yhirose
e8a016267f Added calc3.vcxproj. 2015-03-25 22:33:22 -04:00
yhirose
6c59c02ea9 Updated documentation and examples. 2015-03-11 13:53:24 -04:00
yhirose
e30b4a281f Name refactoring. 2015-03-09 14:58:43 -04:00
yhirose
81d7593ea1 Removed 'reduce' from SemanticValues. 2015-03-05 21:59:54 -05:00
yhirose
fd90882894 Improved SemanticValue interface. 2015-03-03 21:51:28 -05:00
yhirose
1fc0a6819e Updated public interface. 2015-03-02 21:52:09 -05:00
yhirose
b19d37f052 Improving performance... 2015-02-25 19:31:00 -05:00
yhirose
16a61f2cf8 Updated documentation. 2015-02-21 23:23:59 -05:00
yhirose
895414a234 Added calc3.cc. (AST version) 2015-02-21 23:19:54 -05:00
yhirose
3d3af85bc7 Changed the semantic values interface. 2015-02-21 19:38:30 -05:00
yhirose
cf574074c4 Modified documentation and the calc sample. 2015-02-19 22:51:04 -05:00
yhirose
4c5fd70503 Removed the name vector and added the context data in semantic action. 2015-02-14 19:02:54 -05:00
yhirose
0643f44b03 Changed 'match' back to 'parse'. 2015-02-14 12:58:17 -05:00