From 0f37802aba5e6c8c6d44f0201cc00fc714d01513 Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Mon, 24 May 2021 21:04:24 +0200 Subject: [PATCH 1/5] move namespace json into the chaiscript namespace #486 --- include/chaiscript/utility/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/utility/json.hpp b/include/chaiscript/utility/json.hpp index 6bc57613..25be353a 100644 --- a/include/chaiscript/utility/json.hpp +++ b/include/chaiscript/utility/json.hpp @@ -19,7 +19,7 @@ #include #include -namespace json { +namespace chaiscript::json { using std::enable_if; using std::initializer_list; using std::is_convertible; @@ -593,6 +593,6 @@ namespace json { return JSONParser::parse_next(str, offset); } -} // End Namespace json +} // namespace chaiscript::json #endif From a1a78e9cf1d07bcad714242196bbf09e2eb185b9 Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Mon, 24 May 2021 21:11:12 +0200 Subject: [PATCH 2/5] remove trailing spaces from readme.txt --- readme.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/readme.md b/readme.md index 88f8a516..b7edf6bd 100644 --- a/readme.md +++ b/readme.md @@ -27,16 +27,16 @@ Introduction [![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/ChaiScript/ChaiScript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -ChaiScript is one of the only embedded scripting language designed from the -ground up to directly target C++ and take advantage of modern C++ development +ChaiScript is one of the only embedded scripting language designed from the +ground up to directly target C++ and take advantage of modern C++ development techniques, working with the developer how they would expect it to work. Being a -native C++ application, it has some advantages over existing embedded scripting +native C++ application, it has some advantages over existing embedded scripting languages: -1. It uses a header-only approach, which makes it easy to integrate with +1. It uses a header-only approach, which makes it easy to integrate with existing projects. 2. It maintains type safety between your C++ application and the user scripts. -3. It supports a variety of C++ techniques including callbacks, overloaded +3. It supports a variety of C++ techniques including callbacks, overloaded functions, class methods, and stl containers. @@ -66,17 +66,17 @@ Usage * Add the ChaiScript include directory to your project's header search path * Add `#include ` to your source file -* Instantiate the ChaiScript engine in your application. For example, create a +* Instantiate the ChaiScript engine in your application. For example, create a new engine with the name `chai` like so: `chaiscript::ChaiScript chai` -* The default behavior is to load the ChaiScript standard library from a +* The default behavior is to load the ChaiScript standard library from a loadable module. A second option is to compile the library into your code, see below for an example. -Once instantiated, the engine is ready to start running ChaiScript source. You -have two main options for processing ChaiScript source: a line at a time using +Once instantiated, the engine is ready to start running ChaiScript source. You +have two main options for processing ChaiScript source: a line at a time using `chai.eval(string)` and a file at a time using `chai.eval_file(fname)` -To make functions in your C++ code visible to scripts, they must be registered +To make functions in your C++ code visible to scripts, they must be registered with the scripting engine. To do so, call add: chai.add(chaiscript::fun(&my_function), "my_function_name"); @@ -86,15 +86,15 @@ Once registered the function will be visible to scripts as "my_function_name" Examples ======== -ChaiScript is similar to ECMAScript (aka JavaScript(tm)), but with some -modifications to make it easier to use. For usage examples see the "samples" -directory, and for more in-depth look at the language, the unit tests in the +ChaiScript is similar to ECMAScript (aka JavaScript(tm)), but with some +modifications to make it easier to use. For usage examples see the "samples" +directory, and for more in-depth look at the language, the unit tests in the "unittests" directory cover the most ground. -For examples of how to register parts of your C++ application, see -"example.cpp" in the "samples" directory. Example.cpp is verbose and shows every -possible way of working with the library. For further documentation generate -the doxygen documentation in the build folder or see the website +For examples of how to register parts of your C++ application, see +"example.cpp" in the "samples" directory. Example.cpp is verbose and shows every +possible way of working with the library. For further documentation generate +the doxygen documentation in the build folder or see the website http://www.chaiscript.com. From efeb244cd92169c04ca19c7ca91dc52d52763593 Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Mon, 24 May 2021 21:29:55 +0200 Subject: [PATCH 3/5] readme.txt update requirements to C++17 #506 --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index b7edf6bd..a88c127b 100644 --- a/readme.md +++ b/readme.md @@ -43,8 +43,8 @@ languages: Requirements ============ -ChaiScript requires a C++14 compiler to build with support for variadic -templates. It has been tested with gcc 4.9 and clang 3.6 (with libcxx). +ChaiScript requires a C++17 compiler to build with support for variadic +templates. It has been tested with gcc 7 and clang 6 (with libcxx). For more information see the build [dashboard](http://chaiscript.com/ChaiScript-BuildResults/index.html). From 535d80e8d22b0305e526cd5438787b93b6d74586 Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Mon, 24 May 2021 23:28:16 +0200 Subject: [PATCH 4/5] drop coverity scan status --- readme.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/readme.md b/readme.md index a88c127b..6d9a6306 100644 --- a/readme.md +++ b/readme.md @@ -7,11 +7,6 @@ Master Status: [![Linux Build Status](https://travis-ci.org/ChaiScript/ChaiScrip Develop Status: [![Linux Build Status](https://travis-ci.org/ChaiScript/ChaiScript.png?branch=develop)](https://travis-ci.org/ChaiScript/ChaiScript) [![Windows Build status](https://ci.appveyor.com/api/projects/status/6u3r4s81kkjqmsqw/branch/develop?svg=true)](https://ci.appveyor.com/project/lefticus/chaiscript/branch/develop) [![codecov.io](http://codecov.io/github/ChaiScript/ChaiScript/coverage.svg?branch=develop)](http://codecov.io/github/ChaiScript/ChaiScript?branch=develop) - - Coverity Scan Build Status - - ChaiScript http://www.chaiscript.com From 323cd7a8d4cff1b936b0a1f28a860e79a67e3bff Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Mon, 24 May 2021 23:28:38 +0200 Subject: [PATCH 5/5] drop link to the build dashboard --- readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/readme.md b/readme.md index 6d9a6306..f36788a9 100644 --- a/readme.md +++ b/readme.md @@ -40,8 +40,6 @@ Requirements ChaiScript requires a C++17 compiler to build with support for variadic templates. It has been tested with gcc 7 and clang 6 (with libcxx). -For more information see the build -[dashboard](http://chaiscript.com/ChaiScript-BuildResults/index.html). Installation using vcpkg ========================