From b31493c77775df99790f450759f7520c9d59f960 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 15 Oct 2018 13:48:49 +0100 Subject: [PATCH] docs update yap_kernel lbfgs --- docs/CMakeLists.txt | 2 +- docs/md/builtins.md | 4 +- docs/md/fli.md | 26 +- docs/md/library.md | 2 + docs/md/programming.md | 2 +- misc/editors/prolog.js | 2662 +++++++++-------- packages/ProbLog/problog_lbfgs.yap | 12 +- packages/python/yap_kernel/CMakeLists.txt | 4 +- .../yap_ipython/terminal/debugger.py | 59 +- .../yap_kernel/yap_ipython/terminal/embed.py | 5 +- .../yap_ipython/terminal/interactiveshell.py | 187 +- .../yap_kernel/yap_ipython/terminal/ipapp.py | 36 +- .../yap_kernel/yap_ipython/terminal/magics.py | 4 - .../yap_ipython/terminal/prompts.py | 29 +- .../terminal/pt_inputhooks/__init__.py | 2 +- .../terminal/pt_inputhooks/glut.py | 10 +- .../terminal/pt_inputhooks/pyglet.py | 4 +- .../yap_ipython/terminal/pt_inputhooks/qt.py | 18 +- .../yap_ipython/terminal/pt_inputhooks/wx.py | 2 +- .../yap_ipython/terminal/ptshell.py | 4 +- .../yap_ipython/terminal/ptutils.py | 24 +- .../yap_ipython/terminal/shortcuts.py | 133 +- .../yap_ipython/terminal/tests/test_embed.py | 41 +- .../yap_ipython/terminal/tests/test_help.py | 6 +- .../terminal/tests/test_interactivshell.py | 32 +- packages/yap-lbfgs/lbfgs.pl | 2 +- 26 files changed, 1721 insertions(+), 1591 deletions(-) mode change 100644 => 100755 packages/python/yap_kernel/yap_ipython/terminal/ipapp.py diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index d7187670d..526e72e00 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -90,8 +90,8 @@ endforeach(i ${DOCS_EXCLUDE_}) add_subdirectory(../packages/raptor/doc ${CMAKE_BINARY_DIR}/packages/raptor/doc) SET(DOC_INPUT_FILES_ - ${CMAKE_SOURCE_DIR}/pl ${CMAKE_SOURCE_DIR}/docs/md + ${CMAKE_SOURCE_DIR}/pl ${CMAKE_SOURCE_DIR}/CXX ${CMAKE_SOURCE_DIR}/OPTYap ${CMAKE_SOURCE_DIR}/C diff --git a/docs/md/builtins.md b/docs/md/builtins.md index 0ccb3ecfc..10dd33d6b 100644 --- a/docs/md/builtins.md +++ b/docs/md/builtins.md @@ -20,4 +20,6 @@ notation will be used: + an argument with no preceding symbol can be used in both ways. -@{ \ No newline at end of file +[TOC] + +@} diff --git a/docs/md/fli.md b/docs/md/fli.md index 7bd0b5e61..453f9bb64 100644 --- a/docs/md/fli.md +++ b/docs/md/fli.md @@ -127,8 +127,8 @@ The rest of this appendix describes exhaustively how to interface C to YAP. @} @defgroup Manipulating_Terms Terms -@{ @ingroup ChYInterface +@{ This section provides information about the primitives available to the C programmer for manipulating Prolog terms. @@ -504,8 +504,8 @@ code. Slots can also be used if there is small state. @} @defgroup Unifying_Terms Unification -@{ @ingroup ChYInterface +@{ YAP provides a single routine to attempt the unification of two Prolog terms. The routine may succeed or fail: @@ -522,8 +522,8 @@ otherwise. @} @defgroup CallYAP Using the compiler: -@{ @ingroup Manipulating_Strings Strings +@{ The YAP C-interface now includes an utility routine to copy a string @@ -608,8 +608,8 @@ and -1 on error. @} @defgroup Memory_Allocation Memory Allocation -@{ @ingroup ChYInterface +@{ The next routine can be used to ask space from the Prolog data-base: @@ -638,8 +638,8 @@ area. @} @defgroup Controlling_Streams Controlling YAP Streams from `C` -@{ @ingroup ChYInterface +@{ The C-Interface also provides the C-application with a measure of control over the YAP Input/Output system. The first routine allows one @@ -698,8 +698,8 @@ the name by which YAP should know the new stream. @} @defgroup Utility_Functions Utility Functions in `C -@{ @ingroup ChYInterface +@{ The C-Interface provides the C-application with a a number of utility functions that are useful. @@ -794,9 +794,8 @@ ignore the variable. @} @defgroup Calling_YAP_From_C From `C` back to Prolog -@{ @ingroup ChYInterface -### From `C` back to Prolog {#Calling_YAP_From_C} +@{ There are several ways to call Prolog code from C-code. By default, the `YAP_RunGoal()` should be used for this task. It assumes the engine @@ -967,8 +966,8 @@ have moved the terms @} @defgroup CallYAP Using the compiler: -@{ @ingroup Module_Manipulation_in_C Module Manipulation in C +@{ YAP allows one to create a new module from C-code. To create the new code it is sufficient to call: @@ -998,8 +997,8 @@ Notice that this function returns a term, and not an atom. You can @} @defgroup Miscellaneous_ChYFunctions Miscellaneous C Functions -@{ @ingroup ChYInterface +@{