From 26c51335da5a77c2811f6c913c3f481a8fd3c4f9 Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Wed, 28 Jun 2023 15:28:08 +0530 Subject: [PATCH 1/5] Add initial setup for updation of docs --- .readthedocs.yaml | 6 ++++++ docs/source/conf.py | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..b5f3768d --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,6 @@ +version: 2 + +sphinx: + configuration: docs/source/conf.py + builder: html + diff --git a/docs/source/conf.py b/docs/source/conf.py index e4a32e32..09697f20 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,17 +9,17 @@ if on_rtd: subprocess.call('cd ..; doxygen', shell=True) -import sphinx_rtd_theme +# import sphinx_rtd_theme -html_theme = "sphinx_rtd_theme" +# html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] -def setup(app): - app.add_stylesheet("main_stylesheet.css") +# def setup(app): +# app.add_stylesheet("main_stylesheet.css") -extensions = ['breathe'] -breathe_projects = { 'xeus-cpp': '../xml' } +# extensions = ['breathe'] +# breathe_projects = { 'xeus-cpp': '../xml' } templates_path = ['_templates'] html_static_path = ['_static'] source_suffix = '.rst' From 9b62ce07f1a4c60a8049d6f9b94672bbcc43aa5f Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Wed, 28 Jun 2023 22:08:01 +0530 Subject: [PATCH 2/5] Update the configuration file --- readthedocs.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 readthedocs.yml diff --git a/readthedocs.yml b/readthedocs.yml deleted file mode 100644 index 004a03ae..00000000 --- a/readthedocs.yml +++ /dev/null @@ -1,2 +0,0 @@ -conda: - file: docs/environment.yml From e757c2cfdcb0801fffe4aab3d69b50c77425bc75 Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Mon, 17 Jul 2023 15:27:03 +0530 Subject: [PATCH 3/5] Update with reverting sphinx_rtd_theme used in docs --- docs/environment.yml | 2 +- docs/source/conf.py | 16 +- docs/xml/classxcpp_1_1dummy__display.xml | 13 + docs/xml/classxcpp_1_1interpreter.xml | 488 +++++++ docs/xml/classxcpp_1_1xholder__preamble.xml | 244 ++++ docs/xml/classxcpp_1_1xinput__buffer.xml | 146 ++ docs/xml/classxcpp_1_1xmagics__manager.xml | 256 ++++ docs/xml/classxcpp_1_1xnull.xml | 86 ++ docs/xml/classxcpp_1_1xoutput__buffer.xml | 200 +++ docs/xml/combine.xslt | 15 + docs/xml/compound.xsd | 1215 +++++++++++++++++ .../dir_0838147fd98f457a12154e4203982009.xml | 19 + .../dir_5de380a1c9ca76b6822298a37276cbfa.xml | 13 + .../dir_d44c64559bbebec7f509842c48db8b23.xml | 13 + docs/xml/index.xml | 166 +++ docs/xml/index.xsd | 70 + docs/xml/namespaceargparse.xml | 11 + docs/xml/namespacestd.xml | 11 + docs/xml/namespacexcpp.xml | 164 +++ docs/xml/namespacexcpp_1_1detail.xml | 35 + docs/xml/namespacexeus.xml | 11 + docs/xml/structxcpp_1_1argparser.xml | 72 + docs/xml/structxcpp_1_1xmagic__cell.xml | 50 + docs/xml/structxcpp_1_1xmagic__line.xml | 46 + docs/xml/structxcpp_1_1xmagic__line__cell.xml | 53 + docs/xml/structxcpp_1_1xpreamble.xml | 114 ++ docs/xml/structxcpp_1_1xpreamble__manager.xml | 94 ++ docs/xml/xbuffer_8hpp.xml | 194 +++ docs/xml/xdisplay_8hpp.xml | 102 ++ docs/xml/xeus__cpp__config_8hpp.xml | 201 +++ docs/xml/xholder_8hpp.xml | 132 ++ docs/xml/xinterpreter_8hpp.xml | 273 ++++ docs/xml/xmagics_8hpp.xml | 138 ++ docs/xml/xmanager_8hpp.xml | 335 +++++ docs/xml/xmime_8hpp.xml | 93 ++ docs/xml/xml.xsd | 23 + docs/xml/xoptions_8hpp.xml | 94 ++ docs/xml/xpreamble_8hpp.xml | 113 ++ 38 files changed, 5312 insertions(+), 9 deletions(-) create mode 100644 docs/xml/classxcpp_1_1dummy__display.xml create mode 100644 docs/xml/classxcpp_1_1interpreter.xml create mode 100644 docs/xml/classxcpp_1_1xholder__preamble.xml create mode 100644 docs/xml/classxcpp_1_1xinput__buffer.xml create mode 100644 docs/xml/classxcpp_1_1xmagics__manager.xml create mode 100644 docs/xml/classxcpp_1_1xnull.xml create mode 100644 docs/xml/classxcpp_1_1xoutput__buffer.xml create mode 100644 docs/xml/combine.xslt create mode 100644 docs/xml/compound.xsd create mode 100644 docs/xml/dir_0838147fd98f457a12154e4203982009.xml create mode 100644 docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml create mode 100644 docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml create mode 100644 docs/xml/index.xml create mode 100644 docs/xml/index.xsd create mode 100644 docs/xml/namespaceargparse.xml create mode 100644 docs/xml/namespacestd.xml create mode 100644 docs/xml/namespacexcpp.xml create mode 100644 docs/xml/namespacexcpp_1_1detail.xml create mode 100644 docs/xml/namespacexeus.xml create mode 100644 docs/xml/structxcpp_1_1argparser.xml create mode 100644 docs/xml/structxcpp_1_1xmagic__cell.xml create mode 100644 docs/xml/structxcpp_1_1xmagic__line.xml create mode 100644 docs/xml/structxcpp_1_1xmagic__line__cell.xml create mode 100644 docs/xml/structxcpp_1_1xpreamble.xml create mode 100644 docs/xml/structxcpp_1_1xpreamble__manager.xml create mode 100644 docs/xml/xbuffer_8hpp.xml create mode 100644 docs/xml/xdisplay_8hpp.xml create mode 100644 docs/xml/xeus__cpp__config_8hpp.xml create mode 100644 docs/xml/xholder_8hpp.xml create mode 100644 docs/xml/xinterpreter_8hpp.xml create mode 100644 docs/xml/xmagics_8hpp.xml create mode 100644 docs/xml/xmanager_8hpp.xml create mode 100644 docs/xml/xmime_8hpp.xml create mode 100644 docs/xml/xml.xsd create mode 100644 docs/xml/xoptions_8hpp.xml create mode 100644 docs/xml/xpreamble_8hpp.xml diff --git a/docs/environment.yml b/docs/environment.yml index 62c56412..7f14b6fa 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -4,4 +4,4 @@ channels: - conda-forge dependencies: - - breathe + - breathe \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 09697f20..f2d2a70d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,17 +9,17 @@ if on_rtd: subprocess.call('cd ..; doxygen', shell=True) -# import sphinx_rtd_theme +import sphinx_rtd_theme -# html_theme = "sphinx_rtd_theme" +html_theme = "sphinx_rtd_theme" -# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] -# def setup(app): -# app.add_stylesheet("main_stylesheet.css") +def setup(app): + app.add_stylesheet("main_stylesheet.css") -# extensions = ['breathe'] -# breathe_projects = { 'xeus-cpp': '../xml' } +extensions = ['breathe'] +breathe_projects = { 'xeus-cpp': '../xml' } templates_path = ['_templates'] html_static_path = ['_static'] source_suffix = '.rst' @@ -32,4 +32,4 @@ highlight_language = 'c++' pygments_style = 'sphinx' todo_include_todos = False -htmlhelp_basename = '' +htmlhelp_basename = '' \ No newline at end of file diff --git a/docs/xml/classxcpp_1_1dummy__display.xml b/docs/xml/classxcpp_1_1dummy__display.xml new file mode 100644 index 00000000..3ac5e7a6 --- /dev/null +++ b/docs/xml/classxcpp_1_1dummy__display.xml @@ -0,0 +1,13 @@ + + + + xcpp::dummy_display + + + + + + + + + diff --git a/docs/xml/classxcpp_1_1interpreter.xml b/docs/xml/classxcpp_1_1interpreter.xml new file mode 100644 index 00000000..ddf94c35 --- /dev/null +++ b/docs/xml/classxcpp_1_1interpreter.xml @@ -0,0 +1,488 @@ + + + + xcpp::interpreter + xeus::xinterpreter + + + std::unique_ptr< clang::Interpreter > + std::unique_ptr<clang::Interpreter> xcpp::interpreter::m_interpreter + + m_interpreter + + + + + + + + + + std::string + std::string xcpp::interpreter::m_version + + m_version + + + + + + + + + + xmagics_manager + xmagics_manager xcpp::interpreter::xmagics + + xmagics + + + + + + + + + + xpreamble_manager + xpreamble_manager xcpp::interpreter::preamble_manager + + preamble_manager + + + + + + + + + + std::streambuf * + std::streambuf* xcpp::interpreter::p_cout_strbuf + + p_cout_strbuf + + + + + + + + + + std::streambuf * + std::streambuf* xcpp::interpreter::p_cerr_strbuf + + p_cerr_strbuf + + + + + + + + + + xoutput_buffer + xoutput_buffer xcpp::interpreter::m_cout_buffer + + m_cout_buffer + + + + + + + + + + xoutput_buffer + xoutput_buffer xcpp::interpreter::m_cerr_buffer + + m_cerr_buffer + + + + + + + + + + + + + xcpp::interpreter::interpreter + (int argc, const char *const *argv) + interpreter + + int + argc + + + const char *const * + argv + + + + + + + + + + + + virtual xcpp::interpreter::~interpreter + () + ~interpreter + + + + + + + + + + void + void xcpp::interpreter::publish_stdout + (const std::string &) + publish_stdout + + const std::string & + + + + + + + + + + + void + void xcpp::interpreter::publish_stderr + (const std::string &) + publish_stderr + + const std::string & + + + + + + + + + + + + + void + void xcpp::interpreter::configure_impl + () override + configure_impl + + + + + + + + + + nl::json + nl::json xcpp::interpreter::execute_request_impl + (int execution_counter, const std::string &code, bool silent, bool store_history, nl::json user_expressions, bool allow_stdin) override + execute_request_impl + + int + execution_counter + + + const std::string & + code + + + bool + silent + + + bool + store_history + + + nl::json + user_expressions + + + bool + allow_stdin + + + + + + + + + + + nl::json + nl::json xcpp::interpreter::complete_request_impl + (const std::string &code, int cursor_pos) override + complete_request_impl + + const std::string & + code + + + int + cursor_pos + + + + + + + + + + + nl::json + nl::json xcpp::interpreter::inspect_request_impl + (const std::string &code, int cursor_pos, int detail_level) override + inspect_request_impl + + const std::string & + code + + + int + cursor_pos + + + int + detail_level + + + + + + + + + + + nl::json + nl::json xcpp::interpreter::is_complete_request_impl + (const std::string &code) override + is_complete_request_impl + + const std::string & + code + + + + + + + + + + + nl::json + nl::json xcpp::interpreter::kernel_info_request_impl + () override + kernel_info_request_impl + + + + + + + + + + void + void xcpp::interpreter::shutdown_request_impl + () override + shutdown_request_impl + + + + + + + + + + nl::json + nl::json xcpp::interpreter::get_error_reply + (const std::string &ename, const std::string &evalue, const std::vector< std::string > &trace_back) + get_error_reply + + const std::string & + ename + + + const std::string & + evalue + + + const std::vector< std::string > & + trace_back + + + + + + + + + + + void + void xcpp::interpreter::redirect_output + () + redirect_output + + + + + + + + + + void + void xcpp::interpreter::restore_output + () + restore_output + + + + + + + + + + void + void xcpp::interpreter::init_includes + () + init_includes + + + + + + + + + + void + void xcpp::interpreter::init_preamble + () + init_preamble + + + + + + + + + + void + void xcpp::interpreter::init_magic + () + init_magic + + + + + + + + + + std::string + std::string xcpp::interpreter::get_stdopt + (int argc, const char *const *argv) + get_stdopt + + int + argc + + + const char *const * + argv + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::interpretercomplete_request_impl + xcpp::interpreterconfigure_impl + xcpp::interpreterexecute_request_impl + xcpp::interpreterget_error_reply + xcpp::interpreterget_stdopt + xcpp::interpreterinit_includes + xcpp::interpreterinit_magic + xcpp::interpreterinit_preamble + xcpp::interpreterinspect_request_impl + xcpp::interpreterinterpreter + xcpp::interpreteris_complete_request_impl + xcpp::interpreterkernel_info_request_impl + xcpp::interpreterm_cerr_buffer + xcpp::interpreterm_cout_buffer + xcpp::interpreterm_interpreter + xcpp::interpreterm_version + xcpp::interpreterp_cerr_strbuf + xcpp::interpreterp_cout_strbuf + xcpp::interpreterpreamble_manager + xcpp::interpreterpublish_stderr + xcpp::interpreterpublish_stdout + xcpp::interpreterredirect_output + xcpp::interpreterrestore_output + xcpp::interpretershutdown_request_impl + xcpp::interpreterxmagics + xcpp::interpreter~interpreter + + + diff --git a/docs/xml/classxcpp_1_1xholder__preamble.xml b/docs/xml/classxcpp_1_1xholder__preamble.xml new file mode 100644 index 00000000..83ac099f --- /dev/null +++ b/docs/xml/classxcpp_1_1xholder__preamble.xml @@ -0,0 +1,244 @@ + + + + xcpp::xholder_preamble + + + xpreamble * + xpreamble* xcpp::xholder_preamble::p_holder + + p_holder + + + + + + + + + + + + + xcpp::xholder_preamble::xholder_preamble + () + xholder_preamble + + + + + + + + + + + xcpp::xholder_preamble::~xholder_preamble + () + ~xholder_preamble + + + + + + + + + + + xcpp::xholder_preamble::xholder_preamble + (const xholder_preamble &rhs) + xholder_preamble + + const xholder_preamble & + rhs + + + + + + + + + + + + xcpp::xholder_preamble::xholder_preamble + (xholder_preamble &&rhs) + xholder_preamble + + xholder_preamble && + rhs + + + + + + + + + + + + xcpp::xholder_preamble::xholder_preamble + (xpreamble *holder) + xholder_preamble + + xpreamble * + holder + + + + + + + + + + + xholder_preamble & + xholder_preamble& xcpp::xholder_preamble::operator= + (const xholder_preamble &rhs) + operator= + + const xholder_preamble & + rhs + + + + + + + + + + + xholder_preamble & + xholder_preamble& xcpp::xholder_preamble::operator= + (xholder_preamble &&rhs) + operator= + + xholder_preamble && + rhs + + + + + + + + + + + xholder_preamble & + xholder_preamble& xcpp::xholder_preamble::operator= + (xpreamble *holder) + operator= + + xpreamble * + holder + + + + + + + + + + + void + void xcpp::xholder_preamble::swap + (xholder_preamble &rhs) + swap + + xholder_preamble & + rhs + + + + + + + + + + + void + void xcpp::xholder_preamble::apply + (const std::string &s, nl::json &kernel_res) + apply + + const std::string & + s + + + nl::json & + kernel_res + + + + + + + + + + + bool + bool xcpp::xholder_preamble::is_match + (const std::string &s) const + is_match + + const std::string & + s + + + + + + + + + + + + + class D + + + D & + D& xcpp::xholder_preamble::get_cast + () + get_cast + + + + + + + + + + + + + + + + xcpp::xholder_preambleapply + xcpp::xholder_preambleget_cast + xcpp::xholder_preambleis_match + xcpp::xholder_preambleoperator= + xcpp::xholder_preambleoperator= + xcpp::xholder_preambleoperator= + xcpp::xholder_preamblep_holder + xcpp::xholder_preambleswap + xcpp::xholder_preamblexholder_preamble + xcpp::xholder_preamblexholder_preamble + xcpp::xholder_preamblexholder_preamble + xcpp::xholder_preamblexholder_preamble + xcpp::xholder_preamble~xholder_preamble + + + diff --git a/docs/xml/classxcpp_1_1xinput__buffer.xml b/docs/xml/classxcpp_1_1xinput__buffer.xml new file mode 100644 index 00000000..e065fdae --- /dev/null +++ b/docs/xml/classxcpp_1_1xinput__buffer.xml @@ -0,0 +1,146 @@ + + + + xcpp::xinput_buffer + std::streambuf + + + std::streambuf + using xcpp::xinput_buffer::base_type = std::streambuf + + base_type + + + + + + + + + + std::function< void(std::string &)> + using xcpp::xinput_buffer::callback_type = std::function<void(std::string&)> + + callback_type + + + + + + + + + + base_type::traits_type + using xcpp::xinput_buffer::traits_type = base_type::traits_type + + traits_type + + + + + + + + + + + + callback_type + callback_type xcpp::xinput_buffer::m_callback + + m_callback + + + + + + + + + + std::string + std::string xcpp::xinput_buffer::m_value + + m_value + + + + + + + + + + + + + xcpp::xinput_buffer::xinput_buffer + (callback_type callback) + xinput_buffer + + callback_type + callback + + + + + + + + + + + + + traits_type::int_type + traits_type::int_type xcpp::xinput_buffer::underflow + () override + underflow + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xinput_bufferbase_type + xcpp::xinput_buffercallback_type + xcpp::xinput_bufferm_callback + xcpp::xinput_bufferm_value + xcpp::xinput_buffertraits_type + xcpp::xinput_bufferunderflow + xcpp::xinput_bufferxinput_buffer + + + diff --git a/docs/xml/classxcpp_1_1xmagics__manager.xml b/docs/xml/classxcpp_1_1xmagics__manager.xml new file mode 100644 index 00000000..c2eb9ac3 --- /dev/null +++ b/docs/xml/classxcpp_1_1xmagics__manager.xml @@ -0,0 +1,256 @@ + + + + xcpp::xmagics_manager + xcpp::xpreamble + + + std::map< std::string, std::shared_ptr< xmagic_cell > > + std::map<std::string, std::shared_ptr<xmagic_cell> > xcpp::xmagics_manager::m_magic_cell + + m_magic_cell + + + + + + + + + + std::map< std::string, std::shared_ptr< xmagic_line > > + std::map<std::string, std::shared_ptr<xmagic_line> > xcpp::xmagics_manager::m_magic_line + + m_magic_line + + + + + + + + + + + + + xcpp::xmagics_manager::xmagics_manager + () + xmagics_manager + + + + + + + + + + + + typename xmagic_type + + + void + void xcpp::xmagics_manager::register_magic + (const std::string &magic_name, xmagic_type magic) + register_magic + + const std::string & + magic_name + + + xmagic_type + magic + + + + + + + + + + + void + void xcpp::xmagics_manager::unregister_magic + (const std::string &magic_name) + unregister_magic + + const std::string & + magic_name + + + + + + + + + + + bool + bool xcpp::xmagics_manager::contains + (const std::string &magic_name, const xmagic_type type=xmagic_type::cell) + contains + + const std::string & + magic_name + + + const xmagic_type + type + xmagic_type::cell + + + + + + + + + + + void + void xcpp::xmagics_manager::apply + (const std::string &magic_name, const std::string &line, const std::string &cell) + apply + + const std::string & + magic_name + + + const std::string & + line + + + const std::string & + cell + + + + + + + + + + + void + void xcpp::xmagics_manager::apply + (const std::string &magic_name, const std::string &line) + apply + + const std::string & + magic_name + + + const std::string & + line + + + + + + + + + + + void + void xcpp::xmagics_manager::apply + (const std::string &code, nl::json &kernel_res) override + apply + apply + + const std::string & + code + + + nl::json & + kernel_res + + + + + + + + + + + xpreamble * + virtual xpreamble* xcpp::xmagics_manager::clone + () const override + clone + clone + + + + + + + + + + + + std::regex + std::regex xcpp::xpreamble::pattern + + pattern + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xmagics_managerapply + xcpp::xmagics_managerapply + xcpp::xmagics_managerapply + xcpp::xmagics_managerclone + xcpp::xmagics_managercontains + xcpp::xmagics_manageris_match + xcpp::xmagics_managerm_magic_cell + xcpp::xmagics_managerm_magic_line + xcpp::xmagics_managerpattern + xcpp::xmagics_managerregister_magic + xcpp::xmagics_managerunregister_magic + xcpp::xmagics_managerxmagics_manager + xcpp::xmagics_manager~xpreamble + + + diff --git a/docs/xml/classxcpp_1_1xnull.xml b/docs/xml/classxcpp_1_1xnull.xml new file mode 100644 index 00000000..5a3e5504 --- /dev/null +++ b/docs/xml/classxcpp_1_1xnull.xml @@ -0,0 +1,86 @@ + + + + xcpp::xnull + std::streambuf + + + std::streambuf + using xcpp::xnull::base_type = std::streambuf + + base_type + + + + + + + + + + base_type::traits_type + using xcpp::xnull::traits_type = base_type::traits_type + + traits_type + + + + + + + + + + + + traits_type::int_type + traits_type::int_type xcpp::xnull::overflow + (traits_type::int_type c) override + overflow + + traits_type::int_type + c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xnullbase_type + xcpp::xnulloverflow + xcpp::xnulltraits_type + + + diff --git a/docs/xml/classxcpp_1_1xoutput__buffer.xml b/docs/xml/classxcpp_1_1xoutput__buffer.xml new file mode 100644 index 00000000..ce1e366c --- /dev/null +++ b/docs/xml/classxcpp_1_1xoutput__buffer.xml @@ -0,0 +1,200 @@ + + + + xcpp::xoutput_buffer + std::streambuf + + + std::streambuf + using xcpp::xoutput_buffer::base_type = std::streambuf + + base_type + + + + + + + + + + std::function< void(const std::string &)> + using xcpp::xoutput_buffer::callback_type = std::function<void(const std::string&)> + + callback_type + + + + + + + + + + base_type::traits_type + using xcpp::xoutput_buffer::traits_type = base_type::traits_type + + traits_type + + + + + + + + + + + + callback_type + callback_type xcpp::xoutput_buffer::m_callback + + m_callback + + + + + + + + + + std::string + std::string xcpp::xoutput_buffer::m_output + + m_output + + + + + + + + + + std::mutex + std::mutex xcpp::xoutput_buffer::m_mutex + + m_mutex + + + + + + + + + + + + + xcpp::xoutput_buffer::xoutput_buffer + (callback_type callback) + xoutput_buffer + + callback_type + callback + + + + + + + + + + + + + traits_type::int_type + traits_type::int_type xcpp::xoutput_buffer::overflow + (traits_type::int_type c) override + overflow + + traits_type::int_type + c + + + + + + + + + + + std::streamsize + std::streamsize xcpp::xoutput_buffer::xsputn + (const char *s, std::streamsize count) override + xsputn + + const char * + s + + + std::streamsize + count + + + + + + + + + + + traits_type::int_type + traits_type::int_type xcpp::xoutput_buffer::sync + () override + sync + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xoutput_bufferbase_type + xcpp::xoutput_buffercallback_type + xcpp::xoutput_bufferm_callback + xcpp::xoutput_bufferm_mutex + xcpp::xoutput_bufferm_output + xcpp::xoutput_bufferoverflow + xcpp::xoutput_buffersync + xcpp::xoutput_buffertraits_type + xcpp::xoutput_bufferxoutput_buffer + xcpp::xoutput_bufferxsputn + + + diff --git a/docs/xml/combine.xslt b/docs/xml/combine.xslt new file mode 100644 index 00000000..3bfa82c1 --- /dev/null +++ b/docs/xml/combine.xslt @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/docs/xml/compound.xsd b/docs/xml/compound.xsd new file mode 100644 index 00000000..6a8a8346 --- /dev/null +++ b/docs/xml/compound.xsd @@ -0,0 +1,1215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/xml/dir_0838147fd98f457a12154e4203982009.xml b/docs/xml/dir_0838147fd98f457a12154e4203982009.xml new file mode 100644 index 00000000..f1935bae --- /dev/null +++ b/docs/xml/dir_0838147fd98f457a12154e4203982009.xml @@ -0,0 +1,19 @@ + + + + /home/krishna/xeus-cpp/include/xeus-cpp + xbuffer.hpp + xeus_cpp_config.hpp + xholder.hpp + xinterpreter.hpp + xmagics.hpp + xmanager.hpp + xoptions.hpp + xpreamble.hpp + + + + + + + diff --git a/docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml b/docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml new file mode 100644 index 00000000..4f3e92f4 --- /dev/null +++ b/docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml @@ -0,0 +1,13 @@ + + + + /home/krishna/xeus-cpp/include/xcpp + xdisplay.hpp + xmime.hpp + + + + + + + diff --git a/docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml b/docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml new file mode 100644 index 00000000..14b875a9 --- /dev/null +++ b/docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml @@ -0,0 +1,13 @@ + + + + /home/krishna/xeus-cpp/include + /home/krishna/xeus-cpp/include/xcpp + /home/krishna/xeus-cpp/include/xeus-cpp + + + + + + + diff --git a/docs/xml/index.xml b/docs/xml/index.xml new file mode 100644 index 00000000..8624b877 --- /dev/null +++ b/docs/xml/index.xml @@ -0,0 +1,166 @@ + + + xcpp::argparser + base_type + parse + + xcpp::dummy_display + + xcpp::interpreter + m_interpreter + m_version + xmagics + preamble_manager + p_cout_strbuf + p_cerr_strbuf + m_cout_buffer + m_cerr_buffer + interpreter + ~interpreter + publish_stdout + publish_stderr + configure_impl + execute_request_impl + complete_request_impl + inspect_request_impl + is_complete_request_impl + kernel_info_request_impl + shutdown_request_impl + get_error_reply + redirect_output + restore_output + init_includes + init_preamble + init_magic + get_stdopt + + xcpp::xholder_preamble + p_holder + xholder_preamble + ~xholder_preamble + xholder_preamble + xholder_preamble + xholder_preamble + operator= + operator= + operator= + swap + apply + is_match + get_cast + + xcpp::xinput_buffer + base_type + callback_type + traits_type + m_callback + m_value + xinput_buffer + underflow + + xcpp::xmagic_cell + operator() + + xcpp::xmagic_line + operator() + + xcpp::xmagic_line_cell + + xcpp::xmagics_manager + m_magic_cell + m_magic_line + xmagics_manager + register_magic + unregister_magic + contains + apply + apply + apply + clone + pattern + + xcpp::xnull + base_type + traits_type + overflow + + xcpp::xoutput_buffer + base_type + callback_type + traits_type + m_callback + m_output + m_mutex + xoutput_buffer + overflow + xsputn + sync + + xcpp::xpreamble + pattern + is_match + apply + clone + ~xpreamble + + xcpp::xpreamble_manager + preamble + register_preamble + unregister_preamble + operator[] + + argparse + + std + + xcpp + xmagic_type + cell + line + display + display + display + clear_output + mime_bundle_repr + + xcpp::detail + mime_bundle_repr_via_sstream + + xeus + + xdisplay.hpp + + xmime.hpp + + xbuffer.hpp + + xeus_cpp_config.hpp + XEUS_CPP_VERSION_MAJOR + XEUS_CPP_VERSION_MINOR + XEUS_CPP_VERSION_PATCH + XEUS_CPP_CONCATENATE + XEUS_CPP_CONCATENATE_IMPL + XEUS_CPP_STRINGIFY + XEUS_CPP_STRINGIFY_IMPL + XEUS_CPP_VERSION + XEUS_CPP_API + + xholder.hpp + + xinterpreter.hpp + + xmagics.hpp + + xmanager.hpp + + xoptions.hpp + + xpreamble.hpp + + /home/krishna/xeus-cpp/include + + /home/krishna/xeus-cpp/include/xcpp + + /home/krishna/xeus-cpp/include/xeus-cpp + + diff --git a/docs/xml/index.xsd b/docs/xml/index.xsd new file mode 100644 index 00000000..edb1d347 --- /dev/null +++ b/docs/xml/index.xsd @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/xml/namespaceargparse.xml b/docs/xml/namespaceargparse.xml new file mode 100644 index 00000000..bb198f64 --- /dev/null +++ b/docs/xml/namespaceargparse.xml @@ -0,0 +1,11 @@ + + + + argparse + + + + + + + diff --git a/docs/xml/namespacestd.xml b/docs/xml/namespacestd.xml new file mode 100644 index 00000000..b4131049 --- /dev/null +++ b/docs/xml/namespacestd.xml @@ -0,0 +1,11 @@ + + + + std + + + + + + + diff --git a/docs/xml/namespacexcpp.xml b/docs/xml/namespacexcpp.xml new file mode 100644 index 00000000..e1fffb76 --- /dev/null +++ b/docs/xml/namespacexcpp.xml @@ -0,0 +1,164 @@ + + + + xcpp + xcpp::dummy_display + xcpp::xoutput_buffer + xcpp::xinput_buffer + xcpp::xnull + xcpp::xholder_preamble + xcpp::interpreter + xcpp::xmagic_line + xcpp::xmagic_cell + xcpp::xmagic_line_cell + xcpp::xpreamble_manager + xcpp::xmagics_manager + xcpp::argparser + xcpp::xpreamble + xcpp::detail + + + + xmagic_type + + cell + + + + + + + line + + + + + + + + + + + + + + + + + void + void xcpp::display + (dummy_display i) + display + + dummy_display + i + + + + + + + + + + + + + class T + + + void + void xcpp::display + (const T &t) + display + + const T & + t + + + + + + + + + + + + + class T + + + void + void xcpp::display + (const T &t, xeus::xguid id, bool update=false) + display + + const T & + t + + + xeus::xguid + id + + + bool + update + false + + + + + + + + + + + void + void xcpp::clear_output + (bool wait=false) + clear_output + + bool + wait + false + + + + + + + + + + + + + class T + + + nl::json + nl::json xcpp::mime_bundle_repr + (const T &value) + mime_bundle_repr + + const T & + value + + + + + + + + + + + + + + + + + diff --git a/docs/xml/namespacexcpp_1_1detail.xml b/docs/xml/namespacexcpp_1_1detail.xml new file mode 100644 index 00000000..bf206920 --- /dev/null +++ b/docs/xml/namespacexcpp_1_1detail.xml @@ -0,0 +1,35 @@ + + + + xcpp::detail + + + + + class T + + + nl::json + nl::json xcpp::detail::mime_bundle_repr_via_sstream + (const T &value) + mime_bundle_repr_via_sstream + + const T & + value + + + + + + + + + + + + + + + + + diff --git a/docs/xml/namespacexeus.xml b/docs/xml/namespacexeus.xml new file mode 100644 index 00000000..c8b30bc7 --- /dev/null +++ b/docs/xml/namespacexeus.xml @@ -0,0 +1,11 @@ + + + + xeus + + + + + + + diff --git a/docs/xml/structxcpp_1_1argparser.xml b/docs/xml/structxcpp_1_1argparser.xml new file mode 100644 index 00000000..37792746 --- /dev/null +++ b/docs/xml/structxcpp_1_1argparser.xml @@ -0,0 +1,72 @@ + + + + xcpp::argparser + argparse::ArgumentParser + + + argparse::ArgumentParser + using xcpp::argparser::base_type = argparse::ArgumentParser + + base_type + + + + + + + + + + + + void + void xcpp::argparser::parse + (const std::string &line) + parse + + const std::string & + line + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::argparserbase_type + xcpp::argparserparse + + + diff --git a/docs/xml/structxcpp_1_1xmagic__cell.xml b/docs/xml/structxcpp_1_1xmagic__cell.xml new file mode 100644 index 00000000..a4969e36 --- /dev/null +++ b/docs/xml/structxcpp_1_1xmagic__cell.xml @@ -0,0 +1,50 @@ + + + + xcpp::xmagic_cell + xcpp::xmagic_line_cell + + + void + virtual void xcpp::xmagic_cell::operator() + (const std::string &line, const std::string &cell)=0 + operator() + + const std::string & + line + + + const std::string & + cell + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xmagic_celloperator() + + + diff --git a/docs/xml/structxcpp_1_1xmagic__line.xml b/docs/xml/structxcpp_1_1xmagic__line.xml new file mode 100644 index 00000000..89ca81de --- /dev/null +++ b/docs/xml/structxcpp_1_1xmagic__line.xml @@ -0,0 +1,46 @@ + + + + xcpp::xmagic_line + xcpp::xmagic_line_cell + + + void + virtual void xcpp::xmagic_line::operator() + (const std::string &line)=0 + operator() + + const std::string & + line + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xmagic_lineoperator() + + + diff --git a/docs/xml/structxcpp_1_1xmagic__line__cell.xml b/docs/xml/structxcpp_1_1xmagic__line__cell.xml new file mode 100644 index 00000000..f6647e52 --- /dev/null +++ b/docs/xml/structxcpp_1_1xmagic__line__cell.xml @@ -0,0 +1,53 @@ + + + + xcpp::xmagic_line_cell + xcpp::xmagic_line + xcpp::xmagic_cell + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xmagic_line_celloperator() + xcpp::xmagic_line_celloperator() + + + diff --git a/docs/xml/structxcpp_1_1xpreamble.xml b/docs/xml/structxcpp_1_1xpreamble.xml new file mode 100644 index 00000000..05333767 --- /dev/null +++ b/docs/xml/structxcpp_1_1xpreamble.xml @@ -0,0 +1,114 @@ + + + + xcpp::xpreamble + xcpp::xmagics_manager + + + std::regex + std::regex xcpp::xpreamble::pattern + + pattern + + + + + + + + + + + + bool + bool xcpp::xpreamble::is_match + (const std::string &s) const + is_match + + const std::string & + s + + + + + + + + + + + void + virtual void xcpp::xpreamble::apply + (const std::string &s, nl::json &kernel_res)=0 + apply + apply + + const std::string & + s + + + nl::json & + kernel_res + + + + + + + + + + + xpreamble * + virtual xpreamble* xcpp::xpreamble::clone + () const =0 + clone + clone + + + + + + + + + + + virtual xcpp::xpreamble::~xpreamble + () + ~xpreamble + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xpreambleapply + xcpp::xpreambleclone + xcpp::xpreambleis_match + xcpp::xpreamblepattern + xcpp::xpreamble~xpreamble + + + diff --git a/docs/xml/structxcpp_1_1xpreamble__manager.xml b/docs/xml/structxcpp_1_1xpreamble__manager.xml new file mode 100644 index 00000000..b2acca09 --- /dev/null +++ b/docs/xml/structxcpp_1_1xpreamble__manager.xml @@ -0,0 +1,94 @@ + + + + xcpp::xpreamble_manager + + + std::map< std::string, xholder_preamble > + std::map<std::string, xholder_preamble> xcpp::xpreamble_manager::preamble + + preamble + + + + + + + + + + + + + + typename preamble_type + + + void + void xcpp::xpreamble_manager::register_preamble + (const std::string &name, preamble_type *pre) + register_preamble + + const std::string & + name + + + preamble_type * + pre + + + + + + + + + + + void + void xcpp::xpreamble_manager::unregister_preamble + (const std::string &name) + unregister_preamble + + const std::string & + name + + + + + + + + + + + xholder_preamble & + xholder_preamble& xcpp::xpreamble_manager::operator[] + (const std::string &name) + operator[] + + const std::string & + name + + + + + + + + + + + + + + + + + xcpp::xpreamble_manageroperator[] + xcpp::xpreamble_managerpreamble + xcpp::xpreamble_managerregister_preamble + xcpp::xpreamble_managerunregister_preamble + + + diff --git a/docs/xml/xbuffer_8hpp.xml b/docs/xml/xbuffer_8hpp.xml new file mode 100644 index 00000000..87064272 --- /dev/null +++ b/docs/xml/xbuffer_8hpp.xml @@ -0,0 +1,194 @@ + + + + xbuffer.hpp + functional + memory + mutex + streambuf + string + /home/krishna/xeus-cpp/include/xeus-cpp/xinterpreter.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xoutput_buffer + xcpp::xinput_buffer + xcpp::xnull + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_BUFFER_HPP +#defineXEUS_CPP_BUFFER_HPP + +#include<functional> +#include<memory> +#include<mutex> +#include<streambuf> +#include<string> + +namespacexcpp +{ +/******************** +*outputstreambuf* +********************/ + +classxoutput_buffer:publicstd::streambuf +{ +public: + +usingbase_type=std::streambuf; +usingcallback_type=std::function<void(conststd::string&)>; +usingtraits_type=base_type::traits_type; + +xoutput_buffer(callback_typecallback) +:m_callback(std::move(callback)) +{ +} + +protected: + +traits_type::int_typeoverflow(traits_type::int_typec)override +{ +std::lock_guard<std::mutex>lock(m_mutex); +//Calledforeachoutputcharacter. +if(!traits_type::eq_int_type(c,traits_type::eof())) +{ +m_output.push_back(traits_type::to_char_type(c)); +} +returnc; +} + +std::streamsizexsputn(constchar*s,std::streamsizecount)override +{ +std::lock_guard<std::mutex>lock(m_mutex); +//Calledforastringofcharacters. +m_output.append(s,count); +returncount; +} + +traits_type::int_typesync()override +{ +std::lock_guard<std::mutex>lock(m_mutex); +//Calledincaseofflush. +if(!m_output.empty()) +{ +m_callback(m_output); +m_output.clear(); +} +return0; +} + +callback_typem_callback; +std::stringm_output; +std::mutexm_mutex; +}; + +/******************* +*inputstreambuf* +*******************/ + +classxinput_buffer:publicstd::streambuf +{ +public: + +usingbase_type=std::streambuf; +usingcallback_type=std::function<void(std::string&)>; +usingtraits_type=base_type::traits_type; + +xinput_buffer(callback_typecallback) +:m_callback(std::move(callback)) +,m_value() +{ +char*data=const_cast<char*>(m_value.data()); +this->setg(data,data,data); +} + +protected: + +traits_type::int_typeunderflow()override +{ +m_callback(m_value); +//Terminatethestringtotriggerparsing. +m_value+='\n'; +char*data=const_cast<char*>(m_value.data()); +setg(data,data,data+m_value.size()); +returntraits_type::to_int_type(*gptr()); +} + +callback_typem_callback; +std::stringm_value; +}; + +/************************* +*outputnullstreambuf* +*************************/ + +classxnull:publicstd::streambuf +{ +usingbase_type=std::streambuf; +usingtraits_type=base_type::traits_type; + +traits_type::int_typeoverflow(traits_type::int_typec)override +{ +returnc; +} +}; +} + +#endif + + + + diff --git a/docs/xml/xdisplay_8hpp.xml b/docs/xml/xdisplay_8hpp.xml new file mode 100644 index 00000000..36240a8e --- /dev/null +++ b/docs/xml/xdisplay_8hpp.xml @@ -0,0 +1,102 @@ + + + + xdisplay.hpp + nlohmann/json.hpp + xcpp/xmime.hpp + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::dummy_display + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXCPP_DISPLAY_HPP +#defineXCPP_DISPLAY_HPP + +#include<nlohmann/json.hpp> + +#include"xcpp/xmime.hpp" + +namespacenl=nlohmann; + +namespacexcpp +{ +//Addingadummynon-templatedisplayoverloadasaworkaroundto +//Issuehttps://reviews.llvm.org/D147319 +classdummy_display +{ +}; + +voiddisplay(dummy_displayi) +{ +} + +template<classT> +voiddisplay(constT&t) +{ +using::xcpp::mime_bundle_repr; +xeus::get_interpreter().display_data(mime_bundle_repr(t),nl::json::object(),nl::json::object()); +} + +template<classT> +voiddisplay(constT&t,xeus::xguidid,boolupdate=false) +{ +nl::jsontransient; +transient["display_id"]=id; +using::xcpp::mime_bundle_repr; +if(update) +{ +xeus::get_interpreter() +.update_display_data(mime_bundle_repr(t),nl::json::object(),std::move(transient)); +} +else +{ +xeus::get_interpreter().display_data(mime_bundle_repr(t),nl::json::object(),std::move(transient)); +} +} + +inlinevoidclear_output(boolwait=false) +{ +xeus::get_interpreter().clear_output(wait); +} +} + +#endif + + + + diff --git a/docs/xml/xeus__cpp__config_8hpp.xml b/docs/xml/xeus__cpp__config_8hpp.xml new file mode 100644 index 00000000..f8cb50d5 --- /dev/null +++ b/docs/xml/xeus__cpp__config_8hpp.xml @@ -0,0 +1,201 @@ + + + + xeus_cpp_config.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xinterpreter.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xoptions.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + XEUS_CPP_VERSION_MAJOR + 0 + + + + + + + + + + XEUS_CPP_VERSION_MINOR + 0 + + + + + + + + + + XEUS_CPP_VERSION_PATCH + 1 + + + + + + + + + + XEUS_CPP_CONCATENATE + A + B + XEUS_CPP_CONCATENATE_IMPL(A, B) + + + + + + + + + + XEUS_CPP_CONCATENATE_IMPL + A + B + A##B + + + + + + + + + + XEUS_CPP_STRINGIFY + a + XEUS_CPP_STRINGIFY_IMPL(a) + + + + + + + + + + XEUS_CPP_STRINGIFY_IMPL + a + #a + + + + + + + + + + XEUS_CPP_VERSION + XEUS_CPP_STRINGIFY(XEUS_CPP_CONCATENATE( \ + XEUS_CPP_VERSION_MAJOR, \ + XEUS_CPP_CONCATENATE( \ + ., \ + XEUS_CPP_CONCATENATE(XEUS_CPP_VERSION_MINOR, XEUS_CPP_CONCATENATE(., XEUS_CPP_VERSION_PATCH)) \ + ) \ + )) + + + + + + + + + + XEUS_CPP_API + + + + + + + + + + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_CONFIG_HPP +#defineXEUS_CPP_CONFIG_HPP + +//Projectversion +#defineXEUS_CPP_VERSION_MAJOR0 +#defineXEUS_CPP_VERSION_MINOR0 +#defineXEUS_CPP_VERSION_PATCH1 + +//Composingtheversionstringfrommajor,minorandpatch +#defineXEUS_CPP_CONCATENATE(A,B)XEUS_CPP_CONCATENATE_IMPL(A,B) +#defineXEUS_CPP_CONCATENATE_IMPL(A,B)A##B +#defineXEUS_CPP_STRINGIFY(a)XEUS_CPP_STRINGIFY_IMPL(a) +#defineXEUS_CPP_STRINGIFY_IMPL(a)#a + +#defineXEUS_CPP_VERSION\ +XEUS_CPP_STRINGIFY(XEUS_CPP_CONCATENATE(\ +XEUS_CPP_VERSION_MAJOR,\ +XEUS_CPP_CONCATENATE(\ +.,\ +XEUS_CPP_CONCATENATE(XEUS_CPP_VERSION_MINOR,XEUS_CPP_CONCATENATE(.,XEUS_CPP_VERSION_PATCH))\ +)\ +)) + +#ifdef_WIN32 +#ifdefXEUS_CPP_EXPORTS +#defineXEUS_CPP_API__declspec(dllexport) +#else +#defineXEUS_CPP_API__declspec(dllimport) +#endif +#else +#defineXEUS_CPP_API +#endif + +#endif + + + + diff --git a/docs/xml/xholder_8hpp.xml b/docs/xml/xholder_8hpp.xml new file mode 100644 index 00000000..36658dec --- /dev/null +++ b/docs/xml/xholder_8hpp.xml @@ -0,0 +1,132 @@ + + + + xholder.hpp + algorithm + string + nlohmann/json.hpp + xpreamble.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xmanager.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xholder_preamble + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_HOLDER_HPP +#defineXEUS_CPP_HOLDER_HPP + +#include<algorithm> +#include<string> + +#include<nlohmann/json.hpp> + +#include"xpreamble.hpp" + +namespacenl=nlohmann; + +namespacexcpp +{ +classxholder_preamble +{ +public: + +xholder_preamble(); +~xholder_preamble(); +xholder_preamble(constxholder_preamble&rhs); +xholder_preamble(xholder_preamble&&rhs); +xholder_preamble(xpreamble*holder); + +xholder_preamble&operator=(constxholder_preamble&rhs); +xholder_preamble&operator=(xholder_preamble&&rhs); + +xholder_preamble&operator=(xpreamble*holder); + +voidswap(xholder_preamble&rhs) +{ +std::swap(p_holder,rhs.p_holder); +} + +voidapply(conststd::string&s,nl::json&kernel_res); +boolis_match(conststd::string&s)const; + +template<classD> +D&get_cast() +{ +returndynamic_cast<D&>(*p_holder); +} + +private: + +xpreamble*p_holder; +}; +} +#endif + + + + diff --git a/docs/xml/xinterpreter_8hpp.xml b/docs/xml/xinterpreter_8hpp.xml new file mode 100644 index 00000000..6d06ae14 --- /dev/null +++ b/docs/xml/xinterpreter_8hpp.xml @@ -0,0 +1,273 @@ + + + + xinterpreter.hpp + memory + streambuf + string + vector + clang/Interpreter/Interpreter.h + nlohmann/json.hpp + xeus/xinterpreter.hpp + xbuffer.hpp + xeus_cpp_config.hpp + xmanager.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::interpreter + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + + +#ifndefXEUS_CPP_INTERPRETER_HPP +#defineXEUS_CPP_INTERPRETER_HPP + +#include<memory> +#include<streambuf> +#include<string> +#include<vector> + +#include<clang/Interpreter/Interpreter.h> + +#include<nlohmann/json.hpp> + +#include<xeus/xinterpreter.hpp> + +#include"xbuffer.hpp" +#include"xeus_cpp_config.hpp" +#include"xmanager.hpp" + +namespacenl=nlohmann; + +namespacexcpp +{ +classXEUS_CPP_APIinterpreter:publicxeus::xinterpreter +{ +public: + +interpreter(intargc,constchar*const*argv); +virtual~interpreter(); + +voidpublish_stdout(conststd::string&); +voidpublish_stderr(conststd::string&); + +private: + +voidconfigure_impl()override; + +nl::jsonexecute_request_impl( +intexecution_counter, +conststd::string&code, +boolsilent, +boolstore_history, +nl::jsonuser_expressions, +boolallow_stdin +)override; + +nl::jsoncomplete_request_impl(conststd::string&code,intcursor_pos)override; + +nl::jsoninspect_request_impl(conststd::string&code,intcursor_pos,intdetail_level)override; + +nl::jsonis_complete_request_impl(conststd::string&code)override; + +nl::jsonkernel_info_request_impl()override; + +voidshutdown_request_impl()override; + +nl::jsonget_error_reply( +conststd::string&ename, +conststd::string&evalue, +conststd::vector<std::string>&trace_back +); + +voidredirect_output(); +voidrestore_output(); + +voidinit_includes(); +voidinit_preamble(); +voidinit_magic(); + +std::stringget_stdopt(intargc,constchar*const*argv); + +std::unique_ptr<clang::Interpreter>m_interpreter; + +std::stringm_version; + +xmagics_managerxmagics; +xpreamble_managerpreamble_manager; + +std::streambuf*p_cout_strbuf; +std::streambuf*p_cerr_strbuf; + +xoutput_bufferm_cout_buffer; +xoutput_bufferm_cerr_buffer; +}; +} + +#endif + + + + diff --git a/docs/xml/xmagics_8hpp.xml b/docs/xml/xmagics_8hpp.xml new file mode 100644 index 00000000..0e2dcfda --- /dev/null +++ b/docs/xml/xmagics_8hpp.xml @@ -0,0 +1,138 @@ + + + + xmagics.hpp + map + memory + xoptions.hpp + xpreamble.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xmanager.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xmagic_line + xcpp::xmagic_cell + xcpp::xmagic_line_cell + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_MAGICS_HPP +#defineXEUS_CPP_MAGICS_HPP + +#include<map> +#include<memory> + +#include"xoptions.hpp" +#include"xpreamble.hpp" + +namespacexcpp +{ +enumstructxmagic_type +{ +cell, +line +}; + +structxmagic_line +{ +virtualvoidoperator()(conststd::string&line)=0; +}; + +structxmagic_cell +{ +virtualvoidoperator()(conststd::string&line,conststd::string&cell)=0; +}; + +structxmagic_line_cell:publicxmagic_line, +xmagic_cell +{ +}; +} +#endif + + + + diff --git a/docs/xml/xmanager_8hpp.xml b/docs/xml/xmanager_8hpp.xml new file mode 100644 index 00000000..27b2d255 --- /dev/null +++ b/docs/xml/xmanager_8hpp.xml @@ -0,0 +1,335 @@ + + + + xmanager.hpp + map + memory + regex + string + type_traits + nlohmann/json.hpp + xholder.hpp + xmagics.hpp + xpreamble.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xinterpreter.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xpreamble_manager + xcpp::xmagics_manager + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_MANAGER_HPP +#defineXEUS_CPP_MANAGER_HPP + +#include<map> +#include<memory> +#include<regex> +#include<string> +#include<type_traits> + +#include<nlohmann/json.hpp> + +#include"xholder.hpp" +#include"xmagics.hpp" +#include"xpreamble.hpp" + +namespacenl=nlohmann; + +namespacexcpp +{ +structxpreamble_manager +{ +std::map<std::string,xholder_preamble>preamble; + +template<typenamepreamble_type> +voidregister_preamble(conststd::string&name,preamble_type*pre) +{ +preamble[name]=xholder_preamble(pre); +} + +voidunregister_preamble(conststd::string&name) +{ +preamble.erase(name); +} + +xholder_preamble&operator[](conststd::string&name) +{ +returnpreamble[name]; +} +}; + +classxmagics_manager:publicxpreamble +{ +public: + +usingxpreamble::pattern; + +xmagics_manager() +{ +pattern=R"(^(?:\%{2}|\%)(\w+))"; +} + +template<typenamexmagic_type> +voidregister_magic(conststd::string&magic_name,xmagic_typemagic) +{ +autoshared=std::make_shared<xmagic_type>(magic); +if(std::is_base_of<xmagic_line,xmagic_type>::value) +{ +m_magic_line[magic_name]=std::dynamic_pointer_cast<xmagic_line>(shared); +} +if(std::is_base_of<xmagic_cell,xmagic_type>::value) +{ +m_magic_cell[magic_name]=std::dynamic_pointer_cast<xmagic_cell>(shared); +} +} + +voidunregister_magic(conststd::string&magic_name) +{ +m_magic_cell.erase(magic_name); +m_magic_line.erase(magic_name); +} + +boolcontains(conststd::string&magic_name,constxmagic_typetype=xmagic_type::cell) +{ +if(type==xmagic_type::cell) +{ +returnm_magic_cell.find(magic_name)!=m_magic_cell.end(); +} +if(type==xmagic_type::line) +{ +returnm_magic_line.find(magic_name)!=m_magic_line.end(); +} +returnfalse; +} + +voidapply(conststd::string&magic_name,conststd::string&line,conststd::string&cell) +{ +if(cell.empty()) +{ +std::cerr<<"UsageError:%%"<<magic_name<<"isacellmagic,butthecellbodyisempty." +<<std::endl; +std::cerr<<"Ifyouonlyintendtodisplay%%"<<magic_name +<<"help,pleaseuseadoublelinebreaktofillinthecellbody."; +if(contains(magic_name,xmagic_type::line)) +{ +std::cerr<<"Didyoumeanthelinemagic%"<<magic_name<<"(single%)?"; +} +std::cerr<<"\n"; +return; +} +try +{ +(*m_magic_cell[magic_name])(line,cell); +} +catch(conststd::exception&e) +{ +std::cerr<<e.what()<<std::endl; +} +catch(...) +{ +std::cerr<<"Exceptionoccurred.Recovering...\n"; +} +} + +voidapply(conststd::string&magic_name,conststd::string&line) +{ +try +{ +(*m_magic_line[magic_name])(line); +} +catch(conststd::runtime_error&e) +{ +std::cerr<<e.what()<<std::endl; +} +catch(conststd::logic_error&e) +{ +std::cerr<<e.what()<<std::endl; +} +catch(...) +{ +std::cerr<<"Exceptionoccurred.Recovering...\n"; +} +} + +voidapply(conststd::string&code,nl::json&kernel_res)override +{ +std::regexre_magic_cell(R"(^\%{2}(\w+))"); +std::smatchmagic_name; +if(std::regex_search(code,magic_name,re_magic_cell)) +{ +if(!contains(magic_name.str(1))) +{ +std::cerr<<"Unknownmagiccellfunction%%"<<magic_name[1]<<"\n"; +std::cout<<std::flush; +kernel_res["status"]="error"; +kernel_res["ename"]="ename"; +kernel_res["evalue"]="evalue"; +kernel_res["traceback"]=nl::json::array(); +return; +} +std::regexre_magic_cell(R"(^\%{2}(\w+(?:\s.*)?)\n((?:.*\n?)*))"); +std::smatchsplit_code; +std::regex_search(code,split_code,re_magic_cell); +apply(magic_name[1],split_code[1],split_code[2]); +std::cout<<std::flush; +kernel_res["status"]="ok"; +} + +std::regexre_magic_line(R"(^\%(\w+))"); +if(std::regex_search(code,magic_name,re_magic_line)) +{ +if(!contains(magic_name.str(1),xmagic_type::line)) +{ +std::cerr<<"Unknownmagiclinefunction%"<<magic_name[1]<<"\n"; +std::cout<<std::flush; +kernel_res["status"]="error"; +kernel_res["ename"]="ename"; +kernel_res["evalue"]="evalue"; +kernel_res["traceback"]={}; +return; +} +std::regexre_magic_line(R"(^\%(\w+(?:\s.*)?))"); +std::smatchsplit_code; +std::regex_search(code,split_code,re_magic_line); +apply(magic_name[1],split_code[1]); +std::cout<<std::flush; +kernel_res["status"]="ok"; +} +} + +virtualxpreamble*clone()constoverride +{ +returnnewxmagics_manager(*this); +} + +private: + +std::map<std::string,std::shared_ptr<xmagic_cell>>m_magic_cell; +std::map<std::string,std::shared_ptr<xmagic_line>>m_magic_line; +}; +} + +#endif + + + + diff --git a/docs/xml/xmime_8hpp.xml b/docs/xml/xmime_8hpp.xml new file mode 100644 index 00000000..641fbfa7 --- /dev/null +++ b/docs/xml/xmime_8hpp.xml @@ -0,0 +1,93 @@ + + + + xmime.hpp + sstream + nlohmann/json.hpp + /home/krishna/xeus-cpp/include/xcpp/xdisplay.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp + xcpp::detail + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXCPP_MIME_HPP +#defineXCPP_MIME_HPP + +#include<sstream> + +#include<nlohmann/json.hpp> + +namespacenl=nlohmann; + +namespacexcpp +{ +namespacedetail +{ +//Genericmime_bundle_repr()implementation +//viastd::ostringstream. +template<classT> +nl::jsonmime_bundle_repr_via_sstream(constT&value) +{ +autobundle=nl::json::object(); + +std::ostringstreamoss; +oss<<value; + +bundle["text/plain"]=oss.str(); +returnbundle; +} + +} + +//Defaultimplementationofmime_bundle_repr +template<classT> +nl::jsonmime_bundle_repr(constT&value) +{ +returndetail::mime_bundle_repr_via_sstream(&value); +} +} + +#endif + + + + diff --git a/docs/xml/xml.xsd b/docs/xml/xml.xsd new file mode 100644 index 00000000..9f80fe15 --- /dev/null +++ b/docs/xml/xml.xsd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/xml/xoptions_8hpp.xml b/docs/xml/xoptions_8hpp.xml new file mode 100644 index 00000000..543a69fb --- /dev/null +++ b/docs/xml/xoptions_8hpp.xml @@ -0,0 +1,94 @@ + + + + xoptions.hpp + string + argparse/argparse.hpp + xeus_cpp_config.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xmagics.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::argparser + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_OPTIONS_HPP +#defineXEUS_CPP_OPTIONS_HPP + +#include<string> + +#include<argparse/argparse.hpp> + +#include"xeus_cpp_config.hpp" + +namespacexcpp +{ +structargparser:publicargparse::ArgumentParser +{ +usingbase_type=argparse::ArgumentParser; +usingbase_type::ArgumentParser; + +voidparse(conststd::string&line); +}; +} +#endif + + + + diff --git a/docs/xml/xpreamble_8hpp.xml b/docs/xml/xpreamble_8hpp.xml new file mode 100644 index 00000000..2e71090a --- /dev/null +++ b/docs/xml/xpreamble_8hpp.xml @@ -0,0 +1,113 @@ + + + + xpreamble.hpp + regex + string + nlohmann/json.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xholder.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xmagics.hpp + /home/krishna/xeus-cpp/include/xeus-cpp/xmanager.hpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xcpp::xpreamble + xcpp + + + + + +/************************************************************************************ +*Copyright(c)2023,xeus-cppcontributors* +*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* +** +*DistributedunderthetermsoftheBSD3-ClauseLicense.* +** +*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* +************************************************************************************/ + +#ifndefXEUS_CPP_PREAMBLE_HPP +#defineXEUS_CPP_PREAMBLE_HPP + +#include<regex> +#include<string> + +#include"nlohmann/json.hpp" + +namespacenl=nlohmann; + +namespacexcpp +{ +structxpreamble +{ +std::regexpattern; + +boolis_match(conststd::string&s)const +{ +std::smatchmatch; +returnstd::regex_search(s,match,pattern); +} + +virtualvoidapply(conststd::string&s,nl::json&kernel_res)=0; +virtualxpreamble*clone()const=0; +virtual~xpreamble(){}; +}; +} +#endif + + + + From 22c955c30f606f74e34a31bad1ccb079cac33e35 Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Mon, 17 Jul 2023 15:30:30 +0530 Subject: [PATCH 4/5] Update with reverting sphinx_rtd_theme used in docs --- docs/xml/classxcpp_1_1dummy__display.xml | 13 - docs/xml/classxcpp_1_1interpreter.xml | 488 ------- docs/xml/classxcpp_1_1xholder__preamble.xml | 244 ---- docs/xml/classxcpp_1_1xinput__buffer.xml | 146 -- docs/xml/classxcpp_1_1xmagics__manager.xml | 256 ---- docs/xml/classxcpp_1_1xnull.xml | 86 -- docs/xml/classxcpp_1_1xoutput__buffer.xml | 200 --- docs/xml/combine.xslt | 15 - docs/xml/compound.xsd | 1215 ----------------- .../dir_0838147fd98f457a12154e4203982009.xml | 19 - .../dir_5de380a1c9ca76b6822298a37276cbfa.xml | 13 - .../dir_d44c64559bbebec7f509842c48db8b23.xml | 13 - docs/xml/index.xml | 166 --- docs/xml/index.xsd | 70 - docs/xml/namespaceargparse.xml | 11 - docs/xml/namespacestd.xml | 11 - docs/xml/namespacexcpp.xml | 164 --- docs/xml/namespacexcpp_1_1detail.xml | 35 - docs/xml/namespacexeus.xml | 11 - docs/xml/structxcpp_1_1argparser.xml | 72 - docs/xml/structxcpp_1_1xmagic__cell.xml | 50 - docs/xml/structxcpp_1_1xmagic__line.xml | 46 - docs/xml/structxcpp_1_1xmagic__line__cell.xml | 53 - docs/xml/structxcpp_1_1xpreamble.xml | 114 -- docs/xml/structxcpp_1_1xpreamble__manager.xml | 94 -- docs/xml/xbuffer_8hpp.xml | 194 --- docs/xml/xdisplay_8hpp.xml | 102 -- docs/xml/xeus__cpp__config_8hpp.xml | 201 --- docs/xml/xholder_8hpp.xml | 132 -- docs/xml/xinterpreter_8hpp.xml | 273 ---- docs/xml/xmagics_8hpp.xml | 138 -- docs/xml/xmanager_8hpp.xml | 335 ----- docs/xml/xmime_8hpp.xml | 93 -- docs/xml/xml.xsd | 23 - docs/xml/xoptions_8hpp.xml | 94 -- docs/xml/xpreamble_8hpp.xml | 113 -- 36 files changed, 5303 deletions(-) delete mode 100644 docs/xml/classxcpp_1_1dummy__display.xml delete mode 100644 docs/xml/classxcpp_1_1interpreter.xml delete mode 100644 docs/xml/classxcpp_1_1xholder__preamble.xml delete mode 100644 docs/xml/classxcpp_1_1xinput__buffer.xml delete mode 100644 docs/xml/classxcpp_1_1xmagics__manager.xml delete mode 100644 docs/xml/classxcpp_1_1xnull.xml delete mode 100644 docs/xml/classxcpp_1_1xoutput__buffer.xml delete mode 100644 docs/xml/combine.xslt delete mode 100644 docs/xml/compound.xsd delete mode 100644 docs/xml/dir_0838147fd98f457a12154e4203982009.xml delete mode 100644 docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml delete mode 100644 docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml delete mode 100644 docs/xml/index.xml delete mode 100644 docs/xml/index.xsd delete mode 100644 docs/xml/namespaceargparse.xml delete mode 100644 docs/xml/namespacestd.xml delete mode 100644 docs/xml/namespacexcpp.xml delete mode 100644 docs/xml/namespacexcpp_1_1detail.xml delete mode 100644 docs/xml/namespacexeus.xml delete mode 100644 docs/xml/structxcpp_1_1argparser.xml delete mode 100644 docs/xml/structxcpp_1_1xmagic__cell.xml delete mode 100644 docs/xml/structxcpp_1_1xmagic__line.xml delete mode 100644 docs/xml/structxcpp_1_1xmagic__line__cell.xml delete mode 100644 docs/xml/structxcpp_1_1xpreamble.xml delete mode 100644 docs/xml/structxcpp_1_1xpreamble__manager.xml delete mode 100644 docs/xml/xbuffer_8hpp.xml delete mode 100644 docs/xml/xdisplay_8hpp.xml delete mode 100644 docs/xml/xeus__cpp__config_8hpp.xml delete mode 100644 docs/xml/xholder_8hpp.xml delete mode 100644 docs/xml/xinterpreter_8hpp.xml delete mode 100644 docs/xml/xmagics_8hpp.xml delete mode 100644 docs/xml/xmanager_8hpp.xml delete mode 100644 docs/xml/xmime_8hpp.xml delete mode 100644 docs/xml/xml.xsd delete mode 100644 docs/xml/xoptions_8hpp.xml delete mode 100644 docs/xml/xpreamble_8hpp.xml diff --git a/docs/xml/classxcpp_1_1dummy__display.xml b/docs/xml/classxcpp_1_1dummy__display.xml deleted file mode 100644 index 3ac5e7a6..00000000 --- a/docs/xml/classxcpp_1_1dummy__display.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - xcpp::dummy_display - - - - - - - - - diff --git a/docs/xml/classxcpp_1_1interpreter.xml b/docs/xml/classxcpp_1_1interpreter.xml deleted file mode 100644 index ddf94c35..00000000 --- a/docs/xml/classxcpp_1_1interpreter.xml +++ /dev/null @@ -1,488 +0,0 @@ - - - - xcpp::interpreter - xeus::xinterpreter - - - std::unique_ptr< clang::Interpreter > - std::unique_ptr<clang::Interpreter> xcpp::interpreter::m_interpreter - - m_interpreter - - - - - - - - - - std::string - std::string xcpp::interpreter::m_version - - m_version - - - - - - - - - - xmagics_manager - xmagics_manager xcpp::interpreter::xmagics - - xmagics - - - - - - - - - - xpreamble_manager - xpreamble_manager xcpp::interpreter::preamble_manager - - preamble_manager - - - - - - - - - - std::streambuf * - std::streambuf* xcpp::interpreter::p_cout_strbuf - - p_cout_strbuf - - - - - - - - - - std::streambuf * - std::streambuf* xcpp::interpreter::p_cerr_strbuf - - p_cerr_strbuf - - - - - - - - - - xoutput_buffer - xoutput_buffer xcpp::interpreter::m_cout_buffer - - m_cout_buffer - - - - - - - - - - xoutput_buffer - xoutput_buffer xcpp::interpreter::m_cerr_buffer - - m_cerr_buffer - - - - - - - - - - - - - xcpp::interpreter::interpreter - (int argc, const char *const *argv) - interpreter - - int - argc - - - const char *const * - argv - - - - - - - - - - - - virtual xcpp::interpreter::~interpreter - () - ~interpreter - - - - - - - - - - void - void xcpp::interpreter::publish_stdout - (const std::string &) - publish_stdout - - const std::string & - - - - - - - - - - - void - void xcpp::interpreter::publish_stderr - (const std::string &) - publish_stderr - - const std::string & - - - - - - - - - - - - - void - void xcpp::interpreter::configure_impl - () override - configure_impl - - - - - - - - - - nl::json - nl::json xcpp::interpreter::execute_request_impl - (int execution_counter, const std::string &code, bool silent, bool store_history, nl::json user_expressions, bool allow_stdin) override - execute_request_impl - - int - execution_counter - - - const std::string & - code - - - bool - silent - - - bool - store_history - - - nl::json - user_expressions - - - bool - allow_stdin - - - - - - - - - - - nl::json - nl::json xcpp::interpreter::complete_request_impl - (const std::string &code, int cursor_pos) override - complete_request_impl - - const std::string & - code - - - int - cursor_pos - - - - - - - - - - - nl::json - nl::json xcpp::interpreter::inspect_request_impl - (const std::string &code, int cursor_pos, int detail_level) override - inspect_request_impl - - const std::string & - code - - - int - cursor_pos - - - int - detail_level - - - - - - - - - - - nl::json - nl::json xcpp::interpreter::is_complete_request_impl - (const std::string &code) override - is_complete_request_impl - - const std::string & - code - - - - - - - - - - - nl::json - nl::json xcpp::interpreter::kernel_info_request_impl - () override - kernel_info_request_impl - - - - - - - - - - void - void xcpp::interpreter::shutdown_request_impl - () override - shutdown_request_impl - - - - - - - - - - nl::json - nl::json xcpp::interpreter::get_error_reply - (const std::string &ename, const std::string &evalue, const std::vector< std::string > &trace_back) - get_error_reply - - const std::string & - ename - - - const std::string & - evalue - - - const std::vector< std::string > & - trace_back - - - - - - - - - - - void - void xcpp::interpreter::redirect_output - () - redirect_output - - - - - - - - - - void - void xcpp::interpreter::restore_output - () - restore_output - - - - - - - - - - void - void xcpp::interpreter::init_includes - () - init_includes - - - - - - - - - - void - void xcpp::interpreter::init_preamble - () - init_preamble - - - - - - - - - - void - void xcpp::interpreter::init_magic - () - init_magic - - - - - - - - - - std::string - std::string xcpp::interpreter::get_stdopt - (int argc, const char *const *argv) - get_stdopt - - int - argc - - - const char *const * - argv - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::interpretercomplete_request_impl - xcpp::interpreterconfigure_impl - xcpp::interpreterexecute_request_impl - xcpp::interpreterget_error_reply - xcpp::interpreterget_stdopt - xcpp::interpreterinit_includes - xcpp::interpreterinit_magic - xcpp::interpreterinit_preamble - xcpp::interpreterinspect_request_impl - xcpp::interpreterinterpreter - xcpp::interpreteris_complete_request_impl - xcpp::interpreterkernel_info_request_impl - xcpp::interpreterm_cerr_buffer - xcpp::interpreterm_cout_buffer - xcpp::interpreterm_interpreter - xcpp::interpreterm_version - xcpp::interpreterp_cerr_strbuf - xcpp::interpreterp_cout_strbuf - xcpp::interpreterpreamble_manager - xcpp::interpreterpublish_stderr - xcpp::interpreterpublish_stdout - xcpp::interpreterredirect_output - xcpp::interpreterrestore_output - xcpp::interpretershutdown_request_impl - xcpp::interpreterxmagics - xcpp::interpreter~interpreter - - - diff --git a/docs/xml/classxcpp_1_1xholder__preamble.xml b/docs/xml/classxcpp_1_1xholder__preamble.xml deleted file mode 100644 index 83ac099f..00000000 --- a/docs/xml/classxcpp_1_1xholder__preamble.xml +++ /dev/null @@ -1,244 +0,0 @@ - - - - xcpp::xholder_preamble - - - xpreamble * - xpreamble* xcpp::xholder_preamble::p_holder - - p_holder - - - - - - - - - - - - - xcpp::xholder_preamble::xholder_preamble - () - xholder_preamble - - - - - - - - - - - xcpp::xholder_preamble::~xholder_preamble - () - ~xholder_preamble - - - - - - - - - - - xcpp::xholder_preamble::xholder_preamble - (const xholder_preamble &rhs) - xholder_preamble - - const xholder_preamble & - rhs - - - - - - - - - - - - xcpp::xholder_preamble::xholder_preamble - (xholder_preamble &&rhs) - xholder_preamble - - xholder_preamble && - rhs - - - - - - - - - - - - xcpp::xholder_preamble::xholder_preamble - (xpreamble *holder) - xholder_preamble - - xpreamble * - holder - - - - - - - - - - - xholder_preamble & - xholder_preamble& xcpp::xholder_preamble::operator= - (const xholder_preamble &rhs) - operator= - - const xholder_preamble & - rhs - - - - - - - - - - - xholder_preamble & - xholder_preamble& xcpp::xholder_preamble::operator= - (xholder_preamble &&rhs) - operator= - - xholder_preamble && - rhs - - - - - - - - - - - xholder_preamble & - xholder_preamble& xcpp::xholder_preamble::operator= - (xpreamble *holder) - operator= - - xpreamble * - holder - - - - - - - - - - - void - void xcpp::xholder_preamble::swap - (xholder_preamble &rhs) - swap - - xholder_preamble & - rhs - - - - - - - - - - - void - void xcpp::xholder_preamble::apply - (const std::string &s, nl::json &kernel_res) - apply - - const std::string & - s - - - nl::json & - kernel_res - - - - - - - - - - - bool - bool xcpp::xholder_preamble::is_match - (const std::string &s) const - is_match - - const std::string & - s - - - - - - - - - - - - - class D - - - D & - D& xcpp::xholder_preamble::get_cast - () - get_cast - - - - - - - - - - - - - - - - xcpp::xholder_preambleapply - xcpp::xholder_preambleget_cast - xcpp::xholder_preambleis_match - xcpp::xholder_preambleoperator= - xcpp::xholder_preambleoperator= - xcpp::xholder_preambleoperator= - xcpp::xholder_preamblep_holder - xcpp::xholder_preambleswap - xcpp::xholder_preamblexholder_preamble - xcpp::xholder_preamblexholder_preamble - xcpp::xholder_preamblexholder_preamble - xcpp::xholder_preamblexholder_preamble - xcpp::xholder_preamble~xholder_preamble - - - diff --git a/docs/xml/classxcpp_1_1xinput__buffer.xml b/docs/xml/classxcpp_1_1xinput__buffer.xml deleted file mode 100644 index e065fdae..00000000 --- a/docs/xml/classxcpp_1_1xinput__buffer.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - xcpp::xinput_buffer - std::streambuf - - - std::streambuf - using xcpp::xinput_buffer::base_type = std::streambuf - - base_type - - - - - - - - - - std::function< void(std::string &)> - using xcpp::xinput_buffer::callback_type = std::function<void(std::string&)> - - callback_type - - - - - - - - - - base_type::traits_type - using xcpp::xinput_buffer::traits_type = base_type::traits_type - - traits_type - - - - - - - - - - - - callback_type - callback_type xcpp::xinput_buffer::m_callback - - m_callback - - - - - - - - - - std::string - std::string xcpp::xinput_buffer::m_value - - m_value - - - - - - - - - - - - - xcpp::xinput_buffer::xinput_buffer - (callback_type callback) - xinput_buffer - - callback_type - callback - - - - - - - - - - - - - traits_type::int_type - traits_type::int_type xcpp::xinput_buffer::underflow - () override - underflow - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xinput_bufferbase_type - xcpp::xinput_buffercallback_type - xcpp::xinput_bufferm_callback - xcpp::xinput_bufferm_value - xcpp::xinput_buffertraits_type - xcpp::xinput_bufferunderflow - xcpp::xinput_bufferxinput_buffer - - - diff --git a/docs/xml/classxcpp_1_1xmagics__manager.xml b/docs/xml/classxcpp_1_1xmagics__manager.xml deleted file mode 100644 index c2eb9ac3..00000000 --- a/docs/xml/classxcpp_1_1xmagics__manager.xml +++ /dev/null @@ -1,256 +0,0 @@ - - - - xcpp::xmagics_manager - xcpp::xpreamble - - - std::map< std::string, std::shared_ptr< xmagic_cell > > - std::map<std::string, std::shared_ptr<xmagic_cell> > xcpp::xmagics_manager::m_magic_cell - - m_magic_cell - - - - - - - - - - std::map< std::string, std::shared_ptr< xmagic_line > > - std::map<std::string, std::shared_ptr<xmagic_line> > xcpp::xmagics_manager::m_magic_line - - m_magic_line - - - - - - - - - - - - - xcpp::xmagics_manager::xmagics_manager - () - xmagics_manager - - - - - - - - - - - - typename xmagic_type - - - void - void xcpp::xmagics_manager::register_magic - (const std::string &magic_name, xmagic_type magic) - register_magic - - const std::string & - magic_name - - - xmagic_type - magic - - - - - - - - - - - void - void xcpp::xmagics_manager::unregister_magic - (const std::string &magic_name) - unregister_magic - - const std::string & - magic_name - - - - - - - - - - - bool - bool xcpp::xmagics_manager::contains - (const std::string &magic_name, const xmagic_type type=xmagic_type::cell) - contains - - const std::string & - magic_name - - - const xmagic_type - type - xmagic_type::cell - - - - - - - - - - - void - void xcpp::xmagics_manager::apply - (const std::string &magic_name, const std::string &line, const std::string &cell) - apply - - const std::string & - magic_name - - - const std::string & - line - - - const std::string & - cell - - - - - - - - - - - void - void xcpp::xmagics_manager::apply - (const std::string &magic_name, const std::string &line) - apply - - const std::string & - magic_name - - - const std::string & - line - - - - - - - - - - - void - void xcpp::xmagics_manager::apply - (const std::string &code, nl::json &kernel_res) override - apply - apply - - const std::string & - code - - - nl::json & - kernel_res - - - - - - - - - - - xpreamble * - virtual xpreamble* xcpp::xmagics_manager::clone - () const override - clone - clone - - - - - - - - - - - - std::regex - std::regex xcpp::xpreamble::pattern - - pattern - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xmagics_managerapply - xcpp::xmagics_managerapply - xcpp::xmagics_managerapply - xcpp::xmagics_managerclone - xcpp::xmagics_managercontains - xcpp::xmagics_manageris_match - xcpp::xmagics_managerm_magic_cell - xcpp::xmagics_managerm_magic_line - xcpp::xmagics_managerpattern - xcpp::xmagics_managerregister_magic - xcpp::xmagics_managerunregister_magic - xcpp::xmagics_managerxmagics_manager - xcpp::xmagics_manager~xpreamble - - - diff --git a/docs/xml/classxcpp_1_1xnull.xml b/docs/xml/classxcpp_1_1xnull.xml deleted file mode 100644 index 5a3e5504..00000000 --- a/docs/xml/classxcpp_1_1xnull.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - xcpp::xnull - std::streambuf - - - std::streambuf - using xcpp::xnull::base_type = std::streambuf - - base_type - - - - - - - - - - base_type::traits_type - using xcpp::xnull::traits_type = base_type::traits_type - - traits_type - - - - - - - - - - - - traits_type::int_type - traits_type::int_type xcpp::xnull::overflow - (traits_type::int_type c) override - overflow - - traits_type::int_type - c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xnullbase_type - xcpp::xnulloverflow - xcpp::xnulltraits_type - - - diff --git a/docs/xml/classxcpp_1_1xoutput__buffer.xml b/docs/xml/classxcpp_1_1xoutput__buffer.xml deleted file mode 100644 index ce1e366c..00000000 --- a/docs/xml/classxcpp_1_1xoutput__buffer.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - xcpp::xoutput_buffer - std::streambuf - - - std::streambuf - using xcpp::xoutput_buffer::base_type = std::streambuf - - base_type - - - - - - - - - - std::function< void(const std::string &)> - using xcpp::xoutput_buffer::callback_type = std::function<void(const std::string&)> - - callback_type - - - - - - - - - - base_type::traits_type - using xcpp::xoutput_buffer::traits_type = base_type::traits_type - - traits_type - - - - - - - - - - - - callback_type - callback_type xcpp::xoutput_buffer::m_callback - - m_callback - - - - - - - - - - std::string - std::string xcpp::xoutput_buffer::m_output - - m_output - - - - - - - - - - std::mutex - std::mutex xcpp::xoutput_buffer::m_mutex - - m_mutex - - - - - - - - - - - - - xcpp::xoutput_buffer::xoutput_buffer - (callback_type callback) - xoutput_buffer - - callback_type - callback - - - - - - - - - - - - - traits_type::int_type - traits_type::int_type xcpp::xoutput_buffer::overflow - (traits_type::int_type c) override - overflow - - traits_type::int_type - c - - - - - - - - - - - std::streamsize - std::streamsize xcpp::xoutput_buffer::xsputn - (const char *s, std::streamsize count) override - xsputn - - const char * - s - - - std::streamsize - count - - - - - - - - - - - traits_type::int_type - traits_type::int_type xcpp::xoutput_buffer::sync - () override - sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xoutput_bufferbase_type - xcpp::xoutput_buffercallback_type - xcpp::xoutput_bufferm_callback - xcpp::xoutput_bufferm_mutex - xcpp::xoutput_bufferm_output - xcpp::xoutput_bufferoverflow - xcpp::xoutput_buffersync - xcpp::xoutput_buffertraits_type - xcpp::xoutput_bufferxoutput_buffer - xcpp::xoutput_bufferxsputn - - - diff --git a/docs/xml/combine.xslt b/docs/xml/combine.xslt deleted file mode 100644 index 3bfa82c1..00000000 --- a/docs/xml/combine.xslt +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - diff --git a/docs/xml/compound.xsd b/docs/xml/compound.xsd deleted file mode 100644 index 6a8a8346..00000000 --- a/docs/xml/compound.xsd +++ /dev/null @@ -1,1215 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/xml/dir_0838147fd98f457a12154e4203982009.xml b/docs/xml/dir_0838147fd98f457a12154e4203982009.xml deleted file mode 100644 index f1935bae..00000000 --- a/docs/xml/dir_0838147fd98f457a12154e4203982009.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - /home/krishna/xeus-cpp/include/xeus-cpp - xbuffer.hpp - xeus_cpp_config.hpp - xholder.hpp - xinterpreter.hpp - xmagics.hpp - xmanager.hpp - xoptions.hpp - xpreamble.hpp - - - - - - - diff --git a/docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml b/docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml deleted file mode 100644 index 4f3e92f4..00000000 --- a/docs/xml/dir_5de380a1c9ca76b6822298a37276cbfa.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - /home/krishna/xeus-cpp/include/xcpp - xdisplay.hpp - xmime.hpp - - - - - - - diff --git a/docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml b/docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml deleted file mode 100644 index 14b875a9..00000000 --- a/docs/xml/dir_d44c64559bbebec7f509842c48db8b23.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - /home/krishna/xeus-cpp/include - /home/krishna/xeus-cpp/include/xcpp - /home/krishna/xeus-cpp/include/xeus-cpp - - - - - - - diff --git a/docs/xml/index.xml b/docs/xml/index.xml deleted file mode 100644 index 8624b877..00000000 --- a/docs/xml/index.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - xcpp::argparser - base_type - parse - - xcpp::dummy_display - - xcpp::interpreter - m_interpreter - m_version - xmagics - preamble_manager - p_cout_strbuf - p_cerr_strbuf - m_cout_buffer - m_cerr_buffer - interpreter - ~interpreter - publish_stdout - publish_stderr - configure_impl - execute_request_impl - complete_request_impl - inspect_request_impl - is_complete_request_impl - kernel_info_request_impl - shutdown_request_impl - get_error_reply - redirect_output - restore_output - init_includes - init_preamble - init_magic - get_stdopt - - xcpp::xholder_preamble - p_holder - xholder_preamble - ~xholder_preamble - xholder_preamble - xholder_preamble - xholder_preamble - operator= - operator= - operator= - swap - apply - is_match - get_cast - - xcpp::xinput_buffer - base_type - callback_type - traits_type - m_callback - m_value - xinput_buffer - underflow - - xcpp::xmagic_cell - operator() - - xcpp::xmagic_line - operator() - - xcpp::xmagic_line_cell - - xcpp::xmagics_manager - m_magic_cell - m_magic_line - xmagics_manager - register_magic - unregister_magic - contains - apply - apply - apply - clone - pattern - - xcpp::xnull - base_type - traits_type - overflow - - xcpp::xoutput_buffer - base_type - callback_type - traits_type - m_callback - m_output - m_mutex - xoutput_buffer - overflow - xsputn - sync - - xcpp::xpreamble - pattern - is_match - apply - clone - ~xpreamble - - xcpp::xpreamble_manager - preamble - register_preamble - unregister_preamble - operator[] - - argparse - - std - - xcpp - xmagic_type - cell - line - display - display - display - clear_output - mime_bundle_repr - - xcpp::detail - mime_bundle_repr_via_sstream - - xeus - - xdisplay.hpp - - xmime.hpp - - xbuffer.hpp - - xeus_cpp_config.hpp - XEUS_CPP_VERSION_MAJOR - XEUS_CPP_VERSION_MINOR - XEUS_CPP_VERSION_PATCH - XEUS_CPP_CONCATENATE - XEUS_CPP_CONCATENATE_IMPL - XEUS_CPP_STRINGIFY - XEUS_CPP_STRINGIFY_IMPL - XEUS_CPP_VERSION - XEUS_CPP_API - - xholder.hpp - - xinterpreter.hpp - - xmagics.hpp - - xmanager.hpp - - xoptions.hpp - - xpreamble.hpp - - /home/krishna/xeus-cpp/include - - /home/krishna/xeus-cpp/include/xcpp - - /home/krishna/xeus-cpp/include/xeus-cpp - - diff --git a/docs/xml/index.xsd b/docs/xml/index.xsd deleted file mode 100644 index edb1d347..00000000 --- a/docs/xml/index.xsd +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/xml/namespaceargparse.xml b/docs/xml/namespaceargparse.xml deleted file mode 100644 index bb198f64..00000000 --- a/docs/xml/namespaceargparse.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - argparse - - - - - - - diff --git a/docs/xml/namespacestd.xml b/docs/xml/namespacestd.xml deleted file mode 100644 index b4131049..00000000 --- a/docs/xml/namespacestd.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - std - - - - - - - diff --git a/docs/xml/namespacexcpp.xml b/docs/xml/namespacexcpp.xml deleted file mode 100644 index e1fffb76..00000000 --- a/docs/xml/namespacexcpp.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - xcpp - xcpp::dummy_display - xcpp::xoutput_buffer - xcpp::xinput_buffer - xcpp::xnull - xcpp::xholder_preamble - xcpp::interpreter - xcpp::xmagic_line - xcpp::xmagic_cell - xcpp::xmagic_line_cell - xcpp::xpreamble_manager - xcpp::xmagics_manager - xcpp::argparser - xcpp::xpreamble - xcpp::detail - - - - xmagic_type - - cell - - - - - - - line - - - - - - - - - - - - - - - - - void - void xcpp::display - (dummy_display i) - display - - dummy_display - i - - - - - - - - - - - - - class T - - - void - void xcpp::display - (const T &t) - display - - const T & - t - - - - - - - - - - - - - class T - - - void - void xcpp::display - (const T &t, xeus::xguid id, bool update=false) - display - - const T & - t - - - xeus::xguid - id - - - bool - update - false - - - - - - - - - - - void - void xcpp::clear_output - (bool wait=false) - clear_output - - bool - wait - false - - - - - - - - - - - - - class T - - - nl::json - nl::json xcpp::mime_bundle_repr - (const T &value) - mime_bundle_repr - - const T & - value - - - - - - - - - - - - - - - - - diff --git a/docs/xml/namespacexcpp_1_1detail.xml b/docs/xml/namespacexcpp_1_1detail.xml deleted file mode 100644 index bf206920..00000000 --- a/docs/xml/namespacexcpp_1_1detail.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - xcpp::detail - - - - - class T - - - nl::json - nl::json xcpp::detail::mime_bundle_repr_via_sstream - (const T &value) - mime_bundle_repr_via_sstream - - const T & - value - - - - - - - - - - - - - - - - - diff --git a/docs/xml/namespacexeus.xml b/docs/xml/namespacexeus.xml deleted file mode 100644 index c8b30bc7..00000000 --- a/docs/xml/namespacexeus.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - xeus - - - - - - - diff --git a/docs/xml/structxcpp_1_1argparser.xml b/docs/xml/structxcpp_1_1argparser.xml deleted file mode 100644 index 37792746..00000000 --- a/docs/xml/structxcpp_1_1argparser.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - xcpp::argparser - argparse::ArgumentParser - - - argparse::ArgumentParser - using xcpp::argparser::base_type = argparse::ArgumentParser - - base_type - - - - - - - - - - - - void - void xcpp::argparser::parse - (const std::string &line) - parse - - const std::string & - line - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::argparserbase_type - xcpp::argparserparse - - - diff --git a/docs/xml/structxcpp_1_1xmagic__cell.xml b/docs/xml/structxcpp_1_1xmagic__cell.xml deleted file mode 100644 index a4969e36..00000000 --- a/docs/xml/structxcpp_1_1xmagic__cell.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - xcpp::xmagic_cell - xcpp::xmagic_line_cell - - - void - virtual void xcpp::xmagic_cell::operator() - (const std::string &line, const std::string &cell)=0 - operator() - - const std::string & - line - - - const std::string & - cell - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xmagic_celloperator() - - - diff --git a/docs/xml/structxcpp_1_1xmagic__line.xml b/docs/xml/structxcpp_1_1xmagic__line.xml deleted file mode 100644 index 89ca81de..00000000 --- a/docs/xml/structxcpp_1_1xmagic__line.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - xcpp::xmagic_line - xcpp::xmagic_line_cell - - - void - virtual void xcpp::xmagic_line::operator() - (const std::string &line)=0 - operator() - - const std::string & - line - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xmagic_lineoperator() - - - diff --git a/docs/xml/structxcpp_1_1xmagic__line__cell.xml b/docs/xml/structxcpp_1_1xmagic__line__cell.xml deleted file mode 100644 index f6647e52..00000000 --- a/docs/xml/structxcpp_1_1xmagic__line__cell.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - xcpp::xmagic_line_cell - xcpp::xmagic_line - xcpp::xmagic_cell - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xmagic_line_celloperator() - xcpp::xmagic_line_celloperator() - - - diff --git a/docs/xml/structxcpp_1_1xpreamble.xml b/docs/xml/structxcpp_1_1xpreamble.xml deleted file mode 100644 index 05333767..00000000 --- a/docs/xml/structxcpp_1_1xpreamble.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - xcpp::xpreamble - xcpp::xmagics_manager - - - std::regex - std::regex xcpp::xpreamble::pattern - - pattern - - - - - - - - - - - - bool - bool xcpp::xpreamble::is_match - (const std::string &s) const - is_match - - const std::string & - s - - - - - - - - - - - void - virtual void xcpp::xpreamble::apply - (const std::string &s, nl::json &kernel_res)=0 - apply - apply - - const std::string & - s - - - nl::json & - kernel_res - - - - - - - - - - - xpreamble * - virtual xpreamble* xcpp::xpreamble::clone - () const =0 - clone - clone - - - - - - - - - - - virtual xcpp::xpreamble::~xpreamble - () - ~xpreamble - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xpreambleapply - xcpp::xpreambleclone - xcpp::xpreambleis_match - xcpp::xpreamblepattern - xcpp::xpreamble~xpreamble - - - diff --git a/docs/xml/structxcpp_1_1xpreamble__manager.xml b/docs/xml/structxcpp_1_1xpreamble__manager.xml deleted file mode 100644 index b2acca09..00000000 --- a/docs/xml/structxcpp_1_1xpreamble__manager.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - xcpp::xpreamble_manager - - - std::map< std::string, xholder_preamble > - std::map<std::string, xholder_preamble> xcpp::xpreamble_manager::preamble - - preamble - - - - - - - - - - - - - - typename preamble_type - - - void - void xcpp::xpreamble_manager::register_preamble - (const std::string &name, preamble_type *pre) - register_preamble - - const std::string & - name - - - preamble_type * - pre - - - - - - - - - - - void - void xcpp::xpreamble_manager::unregister_preamble - (const std::string &name) - unregister_preamble - - const std::string & - name - - - - - - - - - - - xholder_preamble & - xholder_preamble& xcpp::xpreamble_manager::operator[] - (const std::string &name) - operator[] - - const std::string & - name - - - - - - - - - - - - - - - - - xcpp::xpreamble_manageroperator[] - xcpp::xpreamble_managerpreamble - xcpp::xpreamble_managerregister_preamble - xcpp::xpreamble_managerunregister_preamble - - - diff --git a/docs/xml/xbuffer_8hpp.xml b/docs/xml/xbuffer_8hpp.xml deleted file mode 100644 index 87064272..00000000 --- a/docs/xml/xbuffer_8hpp.xml +++ /dev/null @@ -1,194 +0,0 @@ - - - - xbuffer.hpp - functional - memory - mutex - streambuf - string - /home/krishna/xeus-cpp/include/xeus-cpp/xinterpreter.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xoutput_buffer - xcpp::xinput_buffer - xcpp::xnull - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_BUFFER_HPP -#defineXEUS_CPP_BUFFER_HPP - -#include<functional> -#include<memory> -#include<mutex> -#include<streambuf> -#include<string> - -namespacexcpp -{ -/******************** -*outputstreambuf* -********************/ - -classxoutput_buffer:publicstd::streambuf -{ -public: - -usingbase_type=std::streambuf; -usingcallback_type=std::function<void(conststd::string&)>; -usingtraits_type=base_type::traits_type; - -xoutput_buffer(callback_typecallback) -:m_callback(std::move(callback)) -{ -} - -protected: - -traits_type::int_typeoverflow(traits_type::int_typec)override -{ -std::lock_guard<std::mutex>lock(m_mutex); -//Calledforeachoutputcharacter. -if(!traits_type::eq_int_type(c,traits_type::eof())) -{ -m_output.push_back(traits_type::to_char_type(c)); -} -returnc; -} - -std::streamsizexsputn(constchar*s,std::streamsizecount)override -{ -std::lock_guard<std::mutex>lock(m_mutex); -//Calledforastringofcharacters. -m_output.append(s,count); -returncount; -} - -traits_type::int_typesync()override -{ -std::lock_guard<std::mutex>lock(m_mutex); -//Calledincaseofflush. -if(!m_output.empty()) -{ -m_callback(m_output); -m_output.clear(); -} -return0; -} - -callback_typem_callback; -std::stringm_output; -std::mutexm_mutex; -}; - -/******************* -*inputstreambuf* -*******************/ - -classxinput_buffer:publicstd::streambuf -{ -public: - -usingbase_type=std::streambuf; -usingcallback_type=std::function<void(std::string&)>; -usingtraits_type=base_type::traits_type; - -xinput_buffer(callback_typecallback) -:m_callback(std::move(callback)) -,m_value() -{ -char*data=const_cast<char*>(m_value.data()); -this->setg(data,data,data); -} - -protected: - -traits_type::int_typeunderflow()override -{ -m_callback(m_value); -//Terminatethestringtotriggerparsing. -m_value+='\n'; -char*data=const_cast<char*>(m_value.data()); -setg(data,data,data+m_value.size()); -returntraits_type::to_int_type(*gptr()); -} - -callback_typem_callback; -std::stringm_value; -}; - -/************************* -*outputnullstreambuf* -*************************/ - -classxnull:publicstd::streambuf -{ -usingbase_type=std::streambuf; -usingtraits_type=base_type::traits_type; - -traits_type::int_typeoverflow(traits_type::int_typec)override -{ -returnc; -} -}; -} - -#endif - - - - diff --git a/docs/xml/xdisplay_8hpp.xml b/docs/xml/xdisplay_8hpp.xml deleted file mode 100644 index 36240a8e..00000000 --- a/docs/xml/xdisplay_8hpp.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - xdisplay.hpp - nlohmann/json.hpp - xcpp/xmime.hpp - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::dummy_display - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXCPP_DISPLAY_HPP -#defineXCPP_DISPLAY_HPP - -#include<nlohmann/json.hpp> - -#include"xcpp/xmime.hpp" - -namespacenl=nlohmann; - -namespacexcpp -{ -//Addingadummynon-templatedisplayoverloadasaworkaroundto -//Issuehttps://reviews.llvm.org/D147319 -classdummy_display -{ -}; - -voiddisplay(dummy_displayi) -{ -} - -template<classT> -voiddisplay(constT&t) -{ -using::xcpp::mime_bundle_repr; -xeus::get_interpreter().display_data(mime_bundle_repr(t),nl::json::object(),nl::json::object()); -} - -template<classT> -voiddisplay(constT&t,xeus::xguidid,boolupdate=false) -{ -nl::jsontransient; -transient["display_id"]=id; -using::xcpp::mime_bundle_repr; -if(update) -{ -xeus::get_interpreter() -.update_display_data(mime_bundle_repr(t),nl::json::object(),std::move(transient)); -} -else -{ -xeus::get_interpreter().display_data(mime_bundle_repr(t),nl::json::object(),std::move(transient)); -} -} - -inlinevoidclear_output(boolwait=false) -{ -xeus::get_interpreter().clear_output(wait); -} -} - -#endif - - - - diff --git a/docs/xml/xeus__cpp__config_8hpp.xml b/docs/xml/xeus__cpp__config_8hpp.xml deleted file mode 100644 index f8cb50d5..00000000 --- a/docs/xml/xeus__cpp__config_8hpp.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - xeus_cpp_config.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xinterpreter.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xoptions.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - XEUS_CPP_VERSION_MAJOR - 0 - - - - - - - - - - XEUS_CPP_VERSION_MINOR - 0 - - - - - - - - - - XEUS_CPP_VERSION_PATCH - 1 - - - - - - - - - - XEUS_CPP_CONCATENATE - A - B - XEUS_CPP_CONCATENATE_IMPL(A, B) - - - - - - - - - - XEUS_CPP_CONCATENATE_IMPL - A - B - A##B - - - - - - - - - - XEUS_CPP_STRINGIFY - a - XEUS_CPP_STRINGIFY_IMPL(a) - - - - - - - - - - XEUS_CPP_STRINGIFY_IMPL - a - #a - - - - - - - - - - XEUS_CPP_VERSION - XEUS_CPP_STRINGIFY(XEUS_CPP_CONCATENATE( \ - XEUS_CPP_VERSION_MAJOR, \ - XEUS_CPP_CONCATENATE( \ - ., \ - XEUS_CPP_CONCATENATE(XEUS_CPP_VERSION_MINOR, XEUS_CPP_CONCATENATE(., XEUS_CPP_VERSION_PATCH)) \ - ) \ - )) - - - - - - - - - - XEUS_CPP_API - - - - - - - - - - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_CONFIG_HPP -#defineXEUS_CPP_CONFIG_HPP - -//Projectversion -#defineXEUS_CPP_VERSION_MAJOR0 -#defineXEUS_CPP_VERSION_MINOR0 -#defineXEUS_CPP_VERSION_PATCH1 - -//Composingtheversionstringfrommajor,minorandpatch -#defineXEUS_CPP_CONCATENATE(A,B)XEUS_CPP_CONCATENATE_IMPL(A,B) -#defineXEUS_CPP_CONCATENATE_IMPL(A,B)A##B -#defineXEUS_CPP_STRINGIFY(a)XEUS_CPP_STRINGIFY_IMPL(a) -#defineXEUS_CPP_STRINGIFY_IMPL(a)#a - -#defineXEUS_CPP_VERSION\ -XEUS_CPP_STRINGIFY(XEUS_CPP_CONCATENATE(\ -XEUS_CPP_VERSION_MAJOR,\ -XEUS_CPP_CONCATENATE(\ -.,\ -XEUS_CPP_CONCATENATE(XEUS_CPP_VERSION_MINOR,XEUS_CPP_CONCATENATE(.,XEUS_CPP_VERSION_PATCH))\ -)\ -)) - -#ifdef_WIN32 -#ifdefXEUS_CPP_EXPORTS -#defineXEUS_CPP_API__declspec(dllexport) -#else -#defineXEUS_CPP_API__declspec(dllimport) -#endif -#else -#defineXEUS_CPP_API -#endif - -#endif - - - - diff --git a/docs/xml/xholder_8hpp.xml b/docs/xml/xholder_8hpp.xml deleted file mode 100644 index 36658dec..00000000 --- a/docs/xml/xholder_8hpp.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - xholder.hpp - algorithm - string - nlohmann/json.hpp - xpreamble.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xmanager.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xholder_preamble - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_HOLDER_HPP -#defineXEUS_CPP_HOLDER_HPP - -#include<algorithm> -#include<string> - -#include<nlohmann/json.hpp> - -#include"xpreamble.hpp" - -namespacenl=nlohmann; - -namespacexcpp -{ -classxholder_preamble -{ -public: - -xholder_preamble(); -~xholder_preamble(); -xholder_preamble(constxholder_preamble&rhs); -xholder_preamble(xholder_preamble&&rhs); -xholder_preamble(xpreamble*holder); - -xholder_preamble&operator=(constxholder_preamble&rhs); -xholder_preamble&operator=(xholder_preamble&&rhs); - -xholder_preamble&operator=(xpreamble*holder); - -voidswap(xholder_preamble&rhs) -{ -std::swap(p_holder,rhs.p_holder); -} - -voidapply(conststd::string&s,nl::json&kernel_res); -boolis_match(conststd::string&s)const; - -template<classD> -D&get_cast() -{ -returndynamic_cast<D&>(*p_holder); -} - -private: - -xpreamble*p_holder; -}; -} -#endif - - - - diff --git a/docs/xml/xinterpreter_8hpp.xml b/docs/xml/xinterpreter_8hpp.xml deleted file mode 100644 index 6d06ae14..00000000 --- a/docs/xml/xinterpreter_8hpp.xml +++ /dev/null @@ -1,273 +0,0 @@ - - - - xinterpreter.hpp - memory - streambuf - string - vector - clang/Interpreter/Interpreter.h - nlohmann/json.hpp - xeus/xinterpreter.hpp - xbuffer.hpp - xeus_cpp_config.hpp - xmanager.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::interpreter - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - - -#ifndefXEUS_CPP_INTERPRETER_HPP -#defineXEUS_CPP_INTERPRETER_HPP - -#include<memory> -#include<streambuf> -#include<string> -#include<vector> - -#include<clang/Interpreter/Interpreter.h> - -#include<nlohmann/json.hpp> - -#include<xeus/xinterpreter.hpp> - -#include"xbuffer.hpp" -#include"xeus_cpp_config.hpp" -#include"xmanager.hpp" - -namespacenl=nlohmann; - -namespacexcpp -{ -classXEUS_CPP_APIinterpreter:publicxeus::xinterpreter -{ -public: - -interpreter(intargc,constchar*const*argv); -virtual~interpreter(); - -voidpublish_stdout(conststd::string&); -voidpublish_stderr(conststd::string&); - -private: - -voidconfigure_impl()override; - -nl::jsonexecute_request_impl( -intexecution_counter, -conststd::string&code, -boolsilent, -boolstore_history, -nl::jsonuser_expressions, -boolallow_stdin -)override; - -nl::jsoncomplete_request_impl(conststd::string&code,intcursor_pos)override; - -nl::jsoninspect_request_impl(conststd::string&code,intcursor_pos,intdetail_level)override; - -nl::jsonis_complete_request_impl(conststd::string&code)override; - -nl::jsonkernel_info_request_impl()override; - -voidshutdown_request_impl()override; - -nl::jsonget_error_reply( -conststd::string&ename, -conststd::string&evalue, -conststd::vector<std::string>&trace_back -); - -voidredirect_output(); -voidrestore_output(); - -voidinit_includes(); -voidinit_preamble(); -voidinit_magic(); - -std::stringget_stdopt(intargc,constchar*const*argv); - -std::unique_ptr<clang::Interpreter>m_interpreter; - -std::stringm_version; - -xmagics_managerxmagics; -xpreamble_managerpreamble_manager; - -std::streambuf*p_cout_strbuf; -std::streambuf*p_cerr_strbuf; - -xoutput_bufferm_cout_buffer; -xoutput_bufferm_cerr_buffer; -}; -} - -#endif - - - - diff --git a/docs/xml/xmagics_8hpp.xml b/docs/xml/xmagics_8hpp.xml deleted file mode 100644 index 0e2dcfda..00000000 --- a/docs/xml/xmagics_8hpp.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - xmagics.hpp - map - memory - xoptions.hpp - xpreamble.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xmanager.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xmagic_line - xcpp::xmagic_cell - xcpp::xmagic_line_cell - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_MAGICS_HPP -#defineXEUS_CPP_MAGICS_HPP - -#include<map> -#include<memory> - -#include"xoptions.hpp" -#include"xpreamble.hpp" - -namespacexcpp -{ -enumstructxmagic_type -{ -cell, -line -}; - -structxmagic_line -{ -virtualvoidoperator()(conststd::string&line)=0; -}; - -structxmagic_cell -{ -virtualvoidoperator()(conststd::string&line,conststd::string&cell)=0; -}; - -structxmagic_line_cell:publicxmagic_line, -xmagic_cell -{ -}; -} -#endif - - - - diff --git a/docs/xml/xmanager_8hpp.xml b/docs/xml/xmanager_8hpp.xml deleted file mode 100644 index 27b2d255..00000000 --- a/docs/xml/xmanager_8hpp.xml +++ /dev/null @@ -1,335 +0,0 @@ - - - - xmanager.hpp - map - memory - regex - string - type_traits - nlohmann/json.hpp - xholder.hpp - xmagics.hpp - xpreamble.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xinterpreter.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xpreamble_manager - xcpp::xmagics_manager - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_MANAGER_HPP -#defineXEUS_CPP_MANAGER_HPP - -#include<map> -#include<memory> -#include<regex> -#include<string> -#include<type_traits> - -#include<nlohmann/json.hpp> - -#include"xholder.hpp" -#include"xmagics.hpp" -#include"xpreamble.hpp" - -namespacenl=nlohmann; - -namespacexcpp -{ -structxpreamble_manager -{ -std::map<std::string,xholder_preamble>preamble; - -template<typenamepreamble_type> -voidregister_preamble(conststd::string&name,preamble_type*pre) -{ -preamble[name]=xholder_preamble(pre); -} - -voidunregister_preamble(conststd::string&name) -{ -preamble.erase(name); -} - -xholder_preamble&operator[](conststd::string&name) -{ -returnpreamble[name]; -} -}; - -classxmagics_manager:publicxpreamble -{ -public: - -usingxpreamble::pattern; - -xmagics_manager() -{ -pattern=R"(^(?:\%{2}|\%)(\w+))"; -} - -template<typenamexmagic_type> -voidregister_magic(conststd::string&magic_name,xmagic_typemagic) -{ -autoshared=std::make_shared<xmagic_type>(magic); -if(std::is_base_of<xmagic_line,xmagic_type>::value) -{ -m_magic_line[magic_name]=std::dynamic_pointer_cast<xmagic_line>(shared); -} -if(std::is_base_of<xmagic_cell,xmagic_type>::value) -{ -m_magic_cell[magic_name]=std::dynamic_pointer_cast<xmagic_cell>(shared); -} -} - -voidunregister_magic(conststd::string&magic_name) -{ -m_magic_cell.erase(magic_name); -m_magic_line.erase(magic_name); -} - -boolcontains(conststd::string&magic_name,constxmagic_typetype=xmagic_type::cell) -{ -if(type==xmagic_type::cell) -{ -returnm_magic_cell.find(magic_name)!=m_magic_cell.end(); -} -if(type==xmagic_type::line) -{ -returnm_magic_line.find(magic_name)!=m_magic_line.end(); -} -returnfalse; -} - -voidapply(conststd::string&magic_name,conststd::string&line,conststd::string&cell) -{ -if(cell.empty()) -{ -std::cerr<<"UsageError:%%"<<magic_name<<"isacellmagic,butthecellbodyisempty." -<<std::endl; -std::cerr<<"Ifyouonlyintendtodisplay%%"<<magic_name -<<"help,pleaseuseadoublelinebreaktofillinthecellbody."; -if(contains(magic_name,xmagic_type::line)) -{ -std::cerr<<"Didyoumeanthelinemagic%"<<magic_name<<"(single%)?"; -} -std::cerr<<"\n"; -return; -} -try -{ -(*m_magic_cell[magic_name])(line,cell); -} -catch(conststd::exception&e) -{ -std::cerr<<e.what()<<std::endl; -} -catch(...) -{ -std::cerr<<"Exceptionoccurred.Recovering...\n"; -} -} - -voidapply(conststd::string&magic_name,conststd::string&line) -{ -try -{ -(*m_magic_line[magic_name])(line); -} -catch(conststd::runtime_error&e) -{ -std::cerr<<e.what()<<std::endl; -} -catch(conststd::logic_error&e) -{ -std::cerr<<e.what()<<std::endl; -} -catch(...) -{ -std::cerr<<"Exceptionoccurred.Recovering...\n"; -} -} - -voidapply(conststd::string&code,nl::json&kernel_res)override -{ -std::regexre_magic_cell(R"(^\%{2}(\w+))"); -std::smatchmagic_name; -if(std::regex_search(code,magic_name,re_magic_cell)) -{ -if(!contains(magic_name.str(1))) -{ -std::cerr<<"Unknownmagiccellfunction%%"<<magic_name[1]<<"\n"; -std::cout<<std::flush; -kernel_res["status"]="error"; -kernel_res["ename"]="ename"; -kernel_res["evalue"]="evalue"; -kernel_res["traceback"]=nl::json::array(); -return; -} -std::regexre_magic_cell(R"(^\%{2}(\w+(?:\s.*)?)\n((?:.*\n?)*))"); -std::smatchsplit_code; -std::regex_search(code,split_code,re_magic_cell); -apply(magic_name[1],split_code[1],split_code[2]); -std::cout<<std::flush; -kernel_res["status"]="ok"; -} - -std::regexre_magic_line(R"(^\%(\w+))"); -if(std::regex_search(code,magic_name,re_magic_line)) -{ -if(!contains(magic_name.str(1),xmagic_type::line)) -{ -std::cerr<<"Unknownmagiclinefunction%"<<magic_name[1]<<"\n"; -std::cout<<std::flush; -kernel_res["status"]="error"; -kernel_res["ename"]="ename"; -kernel_res["evalue"]="evalue"; -kernel_res["traceback"]={}; -return; -} -std::regexre_magic_line(R"(^\%(\w+(?:\s.*)?))"); -std::smatchsplit_code; -std::regex_search(code,split_code,re_magic_line); -apply(magic_name[1],split_code[1]); -std::cout<<std::flush; -kernel_res["status"]="ok"; -} -} - -virtualxpreamble*clone()constoverride -{ -returnnewxmagics_manager(*this); -} - -private: - -std::map<std::string,std::shared_ptr<xmagic_cell>>m_magic_cell; -std::map<std::string,std::shared_ptr<xmagic_line>>m_magic_line; -}; -} - -#endif - - - - diff --git a/docs/xml/xmime_8hpp.xml b/docs/xml/xmime_8hpp.xml deleted file mode 100644 index 641fbfa7..00000000 --- a/docs/xml/xmime_8hpp.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - xmime.hpp - sstream - nlohmann/json.hpp - /home/krishna/xeus-cpp/include/xcpp/xdisplay.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp - xcpp::detail - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXCPP_MIME_HPP -#defineXCPP_MIME_HPP - -#include<sstream> - -#include<nlohmann/json.hpp> - -namespacenl=nlohmann; - -namespacexcpp -{ -namespacedetail -{ -//Genericmime_bundle_repr()implementation -//viastd::ostringstream. -template<classT> -nl::jsonmime_bundle_repr_via_sstream(constT&value) -{ -autobundle=nl::json::object(); - -std::ostringstreamoss; -oss<<value; - -bundle["text/plain"]=oss.str(); -returnbundle; -} - -} - -//Defaultimplementationofmime_bundle_repr -template<classT> -nl::jsonmime_bundle_repr(constT&value) -{ -returndetail::mime_bundle_repr_via_sstream(&value); -} -} - -#endif - - - - diff --git a/docs/xml/xml.xsd b/docs/xml/xml.xsd deleted file mode 100644 index 9f80fe15..00000000 --- a/docs/xml/xml.xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/xml/xoptions_8hpp.xml b/docs/xml/xoptions_8hpp.xml deleted file mode 100644 index 543a69fb..00000000 --- a/docs/xml/xoptions_8hpp.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - xoptions.hpp - string - argparse/argparse.hpp - xeus_cpp_config.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xmagics.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::argparser - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_OPTIONS_HPP -#defineXEUS_CPP_OPTIONS_HPP - -#include<string> - -#include<argparse/argparse.hpp> - -#include"xeus_cpp_config.hpp" - -namespacexcpp -{ -structargparser:publicargparse::ArgumentParser -{ -usingbase_type=argparse::ArgumentParser; -usingbase_type::ArgumentParser; - -voidparse(conststd::string&line); -}; -} -#endif - - - - diff --git a/docs/xml/xpreamble_8hpp.xml b/docs/xml/xpreamble_8hpp.xml deleted file mode 100644 index 2e71090a..00000000 --- a/docs/xml/xpreamble_8hpp.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - xpreamble.hpp - regex - string - nlohmann/json.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xholder.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xmagics.hpp - /home/krishna/xeus-cpp/include/xeus-cpp/xmanager.hpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xcpp::xpreamble - xcpp - - - - - -/************************************************************************************ -*Copyright(c)2023,xeus-cppcontributors* -*Copyright(c)2023,JohanMabille,LoicGouarin,SylvainCorlay,WolfVollprecht* -** -*DistributedunderthetermsoftheBSD3-ClauseLicense.* -** -*ThefulllicenseisinthefileLICENSE,distributedwiththissoftware.* -************************************************************************************/ - -#ifndefXEUS_CPP_PREAMBLE_HPP -#defineXEUS_CPP_PREAMBLE_HPP - -#include<regex> -#include<string> - -#include"nlohmann/json.hpp" - -namespacenl=nlohmann; - -namespacexcpp -{ -structxpreamble -{ -std::regexpattern; - -boolis_match(conststd::string&s)const -{ -std::smatchmatch; -returnstd::regex_search(s,match,pattern); -} - -virtualvoidapply(conststd::string&s,nl::json&kernel_res)=0; -virtualxpreamble*clone()const=0; -virtual~xpreamble(){}; -}; -} -#endif - - - - From 2f2a985446dc9996ebc34ad8527d2a45ac268ee2 Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Fri, 21 Jul 2023 21:56:37 +0530 Subject: [PATCH 5/5] Update with conda environment --- .readthedocs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index b5f3768d..7f362893 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,3 +4,5 @@ sphinx: configuration: docs/source/conf.py builder: html +conda: + environment: docs/environment.yml \ No newline at end of file