Logtalk 2.15.6 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@970 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
ca4e754af7
commit
0df93ffc6e
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
@ -10,6 +10,34 @@ RELEASE NOTES
|
||||
=============
|
||||
|
||||
|
||||
2.15.6 - February 9, 2004
|
||||
|
||||
Added "xmlspec" compiler option in order to specify the extension (dtd
|
||||
or xsd) of the file describing the XML documenting files specification.
|
||||
|
||||
Renamed compiler option "named_anonymous_vars" to the more appropriated
|
||||
name "underscore_vars". Changed possible option values to "dont_care" and
|
||||
"singletons" (default).
|
||||
|
||||
Added XSLT file for converting XML documenting files to XHTML 1.0 Strict
|
||||
files. Set the default encoding of all XSLT files to UTF-8.
|
||||
|
||||
Added syntax coloring support for the KDE Kate and Kwrite text editors.
|
||||
|
||||
Improved syntax coloring configuration files for VIM, jEdit, NEdit,
|
||||
SubEthaEdit, and Emacs text editors.
|
||||
|
||||
Removed outdated support for MacOS X Project Builder and added support
|
||||
for the new MacOS X Xcode developer tool.
|
||||
|
||||
Corrected bug in the built-in predicate current_logtalk_flag/2 that
|
||||
prevented some flag values from being returned after using the built-in
|
||||
predicate set_logtalk_flag/2.
|
||||
|
||||
Corrected bug in the shapes example (wrong placement of the declaration
|
||||
of the predicate side/1).
|
||||
|
||||
|
||||
2.15.5 - December 30, 2003
|
||||
|
||||
Make operator ^^/1 right-associative for consistency with remaining
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
@ -61,3 +61,7 @@ files.
|
||||
|
||||
Logtalk version 2.15.3 changes the format of the runtime entity tables,
|
||||
impliying recompilation of all objects, protocols, and categories.
|
||||
|
||||
Logtalk version 2.15.6 renamed the compiler option "named_anonymous_vars" to
|
||||
"underscore_vars" and changed the possible option values form "on/off" to
|
||||
"dont_care/singletons".
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
This folder contains several examples of Logtalk programs. Most of
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the bricks.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the classvars.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all entities in this example consult the warnings.loader and
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the inheritance.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the instmethods.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
The examples in this folder are adopted from the Logic&Objects system
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this library consult the planner.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this library consult the travellers.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
This example is an adaptation of a LPA Prolog++ example that is
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this library consult the metapredicates.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the mi.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this library consult the miscellaneous.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this library consult the msglog.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
% assume that all library entities have been loaded...
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load most objects in this example consult the parametric.loader
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the polygons.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the reflection.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this library consult the relations.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the searching.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic polygon.']).
|
||||
|
||||
|
||||
@ -37,16 +37,4 @@
|
||||
argnames is ['Perimeter']]).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
:- end_object.
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
:- object(regular_polygon,
|
||||
instantiates(abstract_class),
|
||||
specializes(polygon)).
|
||||
@ -5,11 +6,23 @@
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic regular polygon.']).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Regular polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
perimeter(Perimeter) :-
|
||||
::nsides(Number),
|
||||
::side(Side),
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic polygon.']).
|
||||
|
||||
|
||||
@ -36,16 +36,4 @@
|
||||
argnames is ['Perimeter']]).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
:- end_object.
|
||||
|
@ -1,14 +1,27 @@
|
||||
|
||||
:- object(regular_polygon,
|
||||
extends(polygon)).
|
||||
|
||||
|
||||
:- info([
|
||||
author is 'Paulo Moura',
|
||||
version is 1.0,
|
||||
date is 2003/2/3,
|
||||
version is 1.1,
|
||||
date is 2004/1/8,
|
||||
comment is 'Generic regular polygon.']).
|
||||
|
||||
|
||||
:- public(side/1).
|
||||
|
||||
:- mode(side(?atom), zero_or_one).
|
||||
|
||||
:- info(side/1, [
|
||||
comment is 'Regular polygon side length.',
|
||||
argnames is ['Length']]).
|
||||
|
||||
|
||||
side(1). % default side length
|
||||
|
||||
|
||||
perimeter(Perimeter) :-
|
||||
::nsides(Number),
|
||||
::side(Side),
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
:- object(square,
|
||||
extends(regular_polygon)).
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
The examples in this folder are adopted from the SICStus Prolog manual.
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the symdiff.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the viewpoints.loader utility
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
This folder contains objects, categories, and protocols that implement
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To consult the Logtalk documentation open the file index.html with a
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
|
||||
<title>Logtalk 2.15.5 Documentation</title>
|
||||
<title>Logtalk 2.15.6 Documentation</title>
|
||||
<link rel="stylesheet" href="styles.css" type="text/css" />
|
||||
</head>
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<h1>Logtalk 2.15.5 Documentation</h1>
|
||||
<h1>Logtalk 2.15.6 Documentation</h1>
|
||||
|
||||
<ul>
|
||||
<li><h2><a href="userman/index.html">User Manual</a></h2></li>
|
||||
@ -37,7 +37,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: December 23, 2003</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: February 5, 2004</span></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
@ -226,7 +226,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: December 23, 2003</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: February 5, 2004</span></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -35,7 +35,7 @@ The Macintosh version is included in the file <code>lgt2xx.sea.bin</code>, a <co
|
||||
<h4>MacOS X, BSD, Linux, Unix</h4>
|
||||
|
||||
<p>
|
||||
The Linux/Unix version is included in the file <code>lgt2xx.tar.gz</code>. In order to decompress and install the system we can use the following commands:
|
||||
The Linux/Unix version is included in the file <code>lgt2xx.tar.gz</code>. In order to decompress and install the system you may use the following commands:
|
||||
</p>
|
||||
<pre>
|
||||
% gunzip lgt2xx.tar.gz
|
||||
@ -235,7 +235,11 @@ You can use the following options:
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>singletons(Option)</code></dt>
|
||||
<dd>Controls the singleton variable warnings. Possible option values are <code>warning</code> (the usual default) and <code>silent</code> (not recommended unless you have already checked your code and want to avoid false singletons warnings like some Prolog compilers report for variables that start with an underscore).</dd>
|
||||
<dd>Controls the singleton variable warnings. Possible option values are <code>warning</code> (the usual default) and <code>silent</code> (not recommended).</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>underscore_vars(Option)</code></dt>
|
||||
<dd>Controls the interpretation of variables that start with an underscore (excluding the anonymous variable) that occur once in a term as either don't care variables or singleton variables. Possible option values are <code>dont_care</code> and <code>singletons</code> (the usual default). Note that, depending on your Prolog compiler, the <code>read_term/3</code> built-in predicate may report variables that start with an underscore as singleton variables. There is no standard behavior, hence this option.</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>misspelt(Option)</code></dt>
|
||||
@ -257,9 +261,13 @@ You can use the following options:
|
||||
<dt><code>xml(Option)</code></dt>
|
||||
<dd>Controls the automatic generation of documenting files in XML format. Possible option values are <code>on</code> (the usual default) and <code>off</code>.</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>xmlspec(Option)</code></dt>
|
||||
<dd>Defines the XML documenting files specification format. Possible option values are <code>dtd</code> (for the DTD specification; the usual default) and <code>xsd</code> (for the XML Schema specification).</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>doctype(Option)</code></dt>
|
||||
<dd>Sets the DOCTYPE reference in the automatically generated XML documenting files. The default value is <code>local</code>, that is, the DOCTYPE reference points to a local DTD file (<code>logtalk.dtd</code>), residing in the same directory as the XML file. Other possible values are <code>web</code> (DOCTYPE reference points to the web location <code>http://www.logtalk.org/xml/1.0/logtalk.dtd</code>) and <code>standalone</code> (no DOCTYPE reference in the XML documenting files).</dd>
|
||||
<dd>Sets the DOCTYPE reference in the automatically generated XML documenting files. The default value is <code>local</code>, that is, the DOCTYPE reference points to a local DTD or XSD file (respectively, <code>logtalk.dtd</code> or <code>logtalk.xsd</code>), residing in the same directory as the XML file. Other possible values are <code>web</code> (DOCTYPE reference points to an web location, either <code>http://www.logtalk.org/xml/1.0/logtalk.dtd</code> or <code>http://www.logtalk.org/xml/1.0/logtalk.xsd</code>) and <code>standalone</code> (no DOCTYPE reference in the XML documenting files).</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>xsl(File)</code></dt>
|
||||
@ -277,10 +285,6 @@ You can use the following options:
|
||||
<dt><code>smart_compilation(Option)</code></dt>
|
||||
<dd>Controls the use of smart compilation of source files to avoid recompiling files that are unchanged since the last time they are compiled. Possible option values are <code>on</code> and <code>off</code> (the usual default).</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>named_anonymous_vars(Option)</code></dt>
|
||||
<dd>Toggles the interpretation of variables that start with an underscore as named anonymous variables. Possible option values are <code>on</code> and <code>off</code> (the usual default).</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><code>code_prefix(Option)</code></dt>
|
||||
<dd>Enables the definition of prefix for all functors of Logtalk generated Prolog code. Option value must be an atom. Default value is ''.</dd>
|
||||
@ -338,7 +342,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: December 23, 2003</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: February 5, 2004</span></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -4,31 +4,23 @@
|
||||
|
||||
;; Author: Paulo Moura
|
||||
;; Creation date: November 15, 2003
|
||||
;; Last modification date: December 16, 2003
|
||||
;; Version: 0.4
|
||||
;; Last modification date: February 2, 2004
|
||||
;; Version: 0.5
|
||||
|
||||
;; Installation:
|
||||
;;
|
||||
;; Add the following lines in your Emacs init file, for example
|
||||
;; your ~/.emacs file.
|
||||
;;
|
||||
;; (add-hook 'logtalk-mode-hook 'my-logtalk-mode-hook)
|
||||
;;
|
||||
;; (defun my-logtalk-mode-hook ()
|
||||
;; (cond (window-system
|
||||
;; (require 'logtalk-font-lock)
|
||||
;; (turn-on-font-lock))))
|
||||
;;
|
||||
;; (setq font-lock-maximum-decoration t)
|
||||
;; your ~/.emacs file:
|
||||
;;
|
||||
;; (autoload 'logtalk-mode "logtalk" "Major mode for editing Logtalk programs." t)
|
||||
;; (setq auto-mode-alist (cons '("\\.lgt\\'" . logtalk-mode) auto-mode-alist))
|
||||
;; (setq auto-mode-alist (cons '("\\.loader\\'" . logtalk-mode) auto-mode-alist))
|
||||
|
||||
|
||||
|
||||
;; setup
|
||||
|
||||
(defvar logtalk-mode-version "0.2"
|
||||
(defvar logtalk-mode-version "0.5"
|
||||
"Logtalk mode version number")
|
||||
|
||||
(defvar logtalk-mode-hook nil)
|
||||
@ -56,43 +48,35 @@
|
||||
(modify-syntax-entry ?* ". 23b" logtalk-mode-syntax-table)
|
||||
(modify-syntax-entry ?% "<" logtalk-mode-syntax-table)
|
||||
(modify-syntax-entry ?\n ">" logtalk-mode-syntax-table)
|
||||
(modify-syntax-entry ?\' "w" logtalk-mode-syntax-table)
|
||||
logtalk-mode-syntax-table)
|
||||
"Syntax table for logtalk-mode")
|
||||
|
||||
|
||||
|
||||
;; create logtalk font-lock-faces
|
||||
;; make logtalk font-lock-faces
|
||||
|
||||
(make-face 'logtalk-default-face)
|
||||
(make-face 'logtalk-directive-face)
|
||||
(set-face-foreground 'logtalk-directive-face "brown")
|
||||
|
||||
(make-face 'logtalk-built-in-predicate-face)
|
||||
(set-face-foreground 'logtalk-built-in-predicate-face "darkmagenta")
|
||||
|
||||
(make-face 'logtalk-built-in-method-face)
|
||||
(set-face-foreground 'logtalk-built-in-method-face "darkmagenta")
|
||||
|
||||
(make-face 'logtalk-message-operator-face)
|
||||
(set-face-foreground 'logtalk-message-operator-face "blue")
|
||||
|
||||
(make-face 'logtalk-string-face)
|
||||
(set-face-foreground 'logtalk-string-face "firebrick")
|
||||
|
||||
(make-face 'logtalk-variable-face)
|
||||
(make-face 'logtalk-number-face)
|
||||
(set-face-foreground 'logtalk-number-face "blue")
|
||||
|
||||
(make-face 'logtalk-comment-face)
|
||||
(set-face-foreground 'logtalk-comment-face "forest green")
|
||||
(make-face 'logtalk-string-face)
|
||||
|
||||
;; set logtalk font-lock-faces
|
||||
|
||||
;; set the font-lock-comment-face to the logtalk-comment-face
|
||||
|
||||
(setq font-lock-comment-face 'logtalk-comment-face)
|
||||
|
||||
|
||||
;; set the font-lock-string-face to the logtalk-string-face
|
||||
|
||||
(setq font-lock-string-face 'logtalk-string-face)
|
||||
(copy-face 'default 'logtalk-default-face)
|
||||
(copy-face 'font-lock-keyword-face 'logtalk-directive-face)
|
||||
(copy-face 'font-lock-builtin-face 'logtalk-built-in-predicate-face)
|
||||
(copy-face 'font-lock-builtin-face 'logtalk-built-in-method-face)
|
||||
(copy-face 'font-lock-function-name-face 'logtalk-message-operator-face)
|
||||
(copy-face 'font-lock-variable-name-face 'logtalk-variable-face)
|
||||
(copy-face 'font-lock-constant-face 'logtalk-number-face)
|
||||
(copy-face 'font-lock-comment-face 'logtalk-comment-face)
|
||||
(copy-face 'font-lock-string-face 'logtalk-string-face)
|
||||
|
||||
|
||||
|
||||
@ -131,7 +115,7 @@
|
||||
("\\(create\\(?:_object\\|e_\\(?:category\\|protocol\\)\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(abolish_\\(?:category\\|object\\|protocol\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(\\(?:category\\|object\\|protocol\\)_property\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(extends_\\(?:object\\|protocol\\)\\|i\\(?:mp\\(?:lements_protocol\\|orts_category\\)\\|nstantiates_object\\)\\|specializes_object\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(extends_\\(?:object\\|protocol\\)\\|i\\(?:mp\\(?:lements_protocol\\|orts_category\\)\\|nstantiates_class\\)\\|specializes_class\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(abolish_events\\|current_event\\|define_events\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(\\(?:curren\\|se\\)t_logtalk_flag\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(logtalk_\\(?:compile\\|load\\|version\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
@ -141,7 +125,7 @@
|
||||
;; control constructs:
|
||||
;;
|
||||
("\\(ca\\(?:ll\\|tch\\)\\|throw\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(fail\\|true\\|!\\)" . 'logtalk-built-in-predicate-face)
|
||||
("\\(fail\\|true\\|!\\|->\\|;\\)" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; logic and control:
|
||||
;;
|
||||
@ -172,11 +156,17 @@
|
||||
;;
|
||||
("\\\\?=" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; dcgs:
|
||||
;;
|
||||
("-->" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; evaluable functors:
|
||||
;;
|
||||
("\\(abs\\|ceiling\\|flo\\(?:at\\(?:_\\(?:\\(?:fractional\\|integer\\)_part\\)\\)?\\|or\\)\\|mod\\|r\\(?:em\\|ound\\)\\|sign\\|truncate\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("//\\|[*+/-]" . 'logtalk-built-in-predicate-face)
|
||||
("\\([[:blank:]]\\)\\(rem\\|mod\\)\\([[:blank:]]\\)" 2 'logtalk-built-in-predicate-face)
|
||||
("//\\|[*/]" . 'logtalk-built-in-predicate-face)
|
||||
("\\([^eE]\\)\\([+]\\)" 2 'logtalk-built-in-predicate-face)
|
||||
("\\([^:eE]\\)\\([-]\\)" 2 'logtalk-built-in-predicate-face)
|
||||
("\\<\\(rem\\|mod\\)\\>" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; other arithemtic functors:
|
||||
;;
|
||||
@ -186,11 +176,12 @@
|
||||
;; stream selection and control:
|
||||
;;
|
||||
("\\(at_end_of_stream\\|c\\(?:lose\\|urrent_\\(?:\\(?:in\\|out\\)put\\)\\)\\|flush_output\\|open\\|s\\(?:et_\\(?:input\\|output\\|stream_position\\)\\|tream_property\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\(at_end_of_stream\\)" . 'logtalk-built-in-predicate-face)
|
||||
("\\<\\(at_end_of_stream\\|flush_output\\)\\>" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; character input/output:
|
||||
;;
|
||||
("\\(get_c\\(?:har\\|ode\\)\\|nl\\|p\\(?:eek_c\\(?:har\\|ode\\)\\|ut_c\\(?:har\\|ode\\)\\)\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("\\<nl\\>" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; byte input/output:
|
||||
;;
|
||||
@ -203,25 +194,51 @@
|
||||
;; implementation defined hooks functions:
|
||||
;;
|
||||
("\\(\\(?:curren\\|se\\)t_prolog_flag\\|halt\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
("halt" . 'logtalk-built-in-predicate-face)
|
||||
("\\<halt\\>" . 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; atomic term processing:
|
||||
;;
|
||||
("\\(atom_\\(?:c\\(?:hars\\|o\\(?:des\\|ncat\\)\\)\\|length\\)\\|char_code\\|number_c\\(?:\\(?:har\\|ode\\)s\\)\\|sub_atom\\)\\([(]\\)" 1 'logtalk-built-in-predicate-face)
|
||||
;;
|
||||
;; bitwise functors:
|
||||
;;
|
||||
("/\\\\\\|<<\\|>>\\|\\\\/" . 'logtalk-built-in-predicate-face)
|
||||
("\\\\" . 'logtalk-built-in-predicate-face)
|
||||
))
|
||||
|
||||
|
||||
|
||||
(setq logtalk-font-lock-operators
|
||||
'(
|
||||
;;
|
||||
;; clause operator:
|
||||
;;
|
||||
(":-" . 'logtalk-default-face)
|
||||
;;
|
||||
;; message sending operators:
|
||||
;;
|
||||
("::\\|\\^\\^\\|[{}]" . 'logtalk-message-operator-face)
|
||||
;;
|
||||
;; mode operators:
|
||||
;;
|
||||
("[@?]" . 'logtalk-built-in-predicate-face)
|
||||
))
|
||||
|
||||
|
||||
(setq logtalk-font-lock-numbers
|
||||
'(
|
||||
("\\<\\(0x[a-fA-F0-9]+\\)\\>" 1 'logtalk-number-face)
|
||||
("\\<\\(0o[0-7]+\\)\\>" 1 'logtalk-number-face)
|
||||
("\\<\\(0b[0-1]+\\)\\>" 1 'logtalk-number-face)
|
||||
("\\<\\(0['][a-zA-Z0-9]\\)\\>" 1 'logtalk-number-face)
|
||||
("\\<\\([0-9]+\\([.][0-9]+\\)?\\([eE][+-][0-9]+\\)?\\)\\>" 1 'logtalk-number-face)
|
||||
))
|
||||
|
||||
|
||||
(setq logtalk-font-lock-variables
|
||||
'(
|
||||
("\\<\\([_A-Z][a-zA-Z0-9_]*\\)\\>" 1 'logtalk-variable-face)
|
||||
))
|
||||
|
||||
|
||||
(setq logtalk-font-lock-keywords
|
||||
(append
|
||||
@ -230,10 +247,11 @@
|
||||
logtalk-font-lock-built-in-methods
|
||||
logtalk-font-lock-built-in-predicates
|
||||
logtalk-font-lock-operators
|
||||
logtalk-font-lock-variables
|
||||
logtalk-font-lock-numbers
|
||||
))
|
||||
|
||||
|
||||
|
||||
;; entry function
|
||||
|
||||
(defun logtalk-mode ()
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ To install:
|
||||
2. Open the "catalog" file in the same subdirectory and add (if not
|
||||
present) the following entry:
|
||||
|
||||
<MODE NAME="logtalk" FILE="logtalk.xml" FILE_NAME_GLOB="*.lgt" />
|
||||
<MODE NAME="logtalk" FILE="logtalk.xml" FILE_NAME_GLOB="*.{lgt,loader}" />
|
||||
|
||||
3. Install (or update if necessary) the jEdit plug-in Templates 3.0.1
|
||||
or later version.
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
<!-- jEdit 4.1 Logtalk syntax file
|
||||
|
||||
written by Paulo Moura
|
||||
version 1.3
|
||||
created on 2 May 2002
|
||||
last revised 7 July 2003
|
||||
written by Paulo Moura
|
||||
version 1.4
|
||||
created on 2 May 2002
|
||||
last revised 28 January 2004
|
||||
|
||||
To install, copy this file to the "modes" subdirectory in jEdit
|
||||
directory installation. Next, check the "catalog" file in the
|
||||
@ -25,7 +25,10 @@
|
||||
<PROPERTY NAME="tabSize" VALUE="4" />
|
||||
</PROPS>
|
||||
|
||||
<RULES SET="MAIN" IGNORE_CASE="FALSE">
|
||||
<RULES SET="MAIN"
|
||||
IGNORE_CASE="FALSE"
|
||||
HIGHLIGHT_DIGITS="FALSE"
|
||||
DIGIT_RE="[[:digit:]]+([eE][-+][[:digit:]]+)?">
|
||||
|
||||
<!-- Comments -->
|
||||
<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
|
||||
@ -34,7 +37,12 @@
|
||||
<END>*/</END>
|
||||
</SPAN>
|
||||
|
||||
<!-- Character code constants -->
|
||||
<SEQ_REGEXP TYPE="NULL" HASH_CHAR="0">0'[[:alnum:]]</SEQ_REGEXP>
|
||||
<!-- Binary, octal, and hexadecimal numbers -->
|
||||
<SEQ_REGEXP TYPE="NULL" HASH_CHAR="0">0b[0-1]+</SEQ_REGEXP>
|
||||
<SEQ_REGEXP TYPE="NULL" HASH_CHAR="0">0o[0-7]+</SEQ_REGEXP>
|
||||
<SEQ_REGEXP TYPE="NULL" HASH_CHAR="0">0x[[:xdigit:]]+</SEQ_REGEXP>
|
||||
|
||||
<!-- String literals -->
|
||||
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
|
||||
@ -162,8 +170,8 @@
|
||||
<FUNCTION>extends_object</FUNCTION>
|
||||
<FUNCTION>extends_protocol</FUNCTION>
|
||||
<FUNCTION>implements_protocol</FUNCTION>
|
||||
<FUNCTION>instantiates_object</FUNCTION>
|
||||
<FUNCTION>specializes_object</FUNCTION>
|
||||
<FUNCTION>instantiates_class</FUNCTION>
|
||||
<FUNCTION>specializes_class</FUNCTION>
|
||||
<FUNCTION>imports_category</FUNCTION>
|
||||
|
||||
<FUNCTION>abolish_events</FUNCTION>
|
||||
|
25
Logtalk/wenv/kate/NOTES
Normal file
25
Logtalk/wenv/kate/NOTES
Normal file
@ -0,0 +1,25 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains files that provide syntax highlighting
|
||||
for editing Logtalk source files with the KDE Kate and Kwrite
|
||||
text editors (http://kate.kde.org/).
|
||||
|
||||
|
||||
To install copy the file "logtalk.xml" to the directory:
|
||||
|
||||
$(KDEDIR)/share/apps/katepart/syntax/
|
||||
|
||||
or:
|
||||
|
||||
~/.kde/share/apps/katepart/syntax
|
||||
|
||||
and restart Kate and Kwrite.
|
||||
|
||||
|
||||
THIS SYNTAX FILE IS UNDER DEVELOPMENT.
|
214
Logtalk/wenv/kate/logtalk.xml
Normal file
214
Logtalk/wenv/kate/logtalk.xml
Normal file
@ -0,0 +1,214 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE language SYSTEM "language.dtd">
|
||||
|
||||
<language name="Logtalk" version="1.0" kateversion="2.2" section="Sources" extensions="*.lgt;*.loader" mimetype="text/x-logtalk">
|
||||
|
||||
<highlighting>
|
||||
|
||||
<contexts>
|
||||
|
||||
<context name="normal" attribute="Normal" lineEndContext="#stay">
|
||||
<!-- Directives -->
|
||||
<RegExpr String = "^[\s]*:-" attribute="Normal" context="directive" />
|
||||
<!-- Event handlers -->
|
||||
<RegExpr String = "\b(after|before)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Method execution context -->
|
||||
<RegExpr String = "\b(parameter|this|self|sender)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Reflection -->
|
||||
<RegExpr String = "\b(current_predicate|predicate_property)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- DCGs -->
|
||||
<RegExpr String = "\bphrase(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Entity -->
|
||||
<RegExpr String = "\b(current_object|current_protocol|current_category)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(create_object|create_protocol|create_category)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(object_property|protocol_property|category_property)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(abolish_object|abolish_protocol|abolish_category)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Event handlers -->
|
||||
<RegExpr String = "\b(extends_object)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(extends_protocol|implements_protocol)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(instantiates_class|specializes_class)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(imports_category)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Events -->
|
||||
<RegExpr String = "\b(abolish_events|current_event|define_events)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Flags and compiler options -->
|
||||
<RegExpr String = "\b(current_logtalk_flag|set_logtalk_flag)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Compiling and loading -->
|
||||
<RegExpr String = "\b(logtalk_compile|logtalk_load)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
|
||||
<!-- Database -->
|
||||
<RegExpr String = "\b(abolish|asserta|assertz|clause|retract|retractall)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Control -->
|
||||
<RegExpr String = "\b(call|catch|throw)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(fail|true)\b" attribute="Built-in" context="#stay" />
|
||||
<!-- All solutions -->
|
||||
<RegExpr String = "\b(bagof|findall|forall|setof)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Term unification -->
|
||||
<RegExpr String = "\bunify_with_occurs_check(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Term creation and decomposition -->
|
||||
<RegExpr String = "\b(functor|arg|copy_term)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Evaluable functors -->
|
||||
<RegExpr String = "\b(rem|mod|abs|sign)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(float_integer_part|float_fractional_part|float)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(floor|truncate|round|ceiling)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Other arithemtic functors -->
|
||||
<RegExpr String = "\b(sin|cos|atan|exp|log|sqrt)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Term testing -->
|
||||
<RegExpr String = "\b(var|atom|integer|float|atomic|compound|nonvar|number)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Stream selection and control -->
|
||||
<RegExpr String = "\b(current_input|current_output)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(set_input|set_output)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(open|close)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\bflush_output\b" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\bflush_output(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(stream_property|at_end_of_stream|set_stream_position)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Character input/output -->
|
||||
<RegExpr String = "\b(get_char|get_code|peek_char|peek_code|put_char|put_code|nl)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Byte input/output -->
|
||||
<RegExpr String = "\b(get_byte|peek_byte|put_byte)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Term input/output -->
|
||||
<RegExpr String = "\b(read_term|read)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(write_term|write|writeq|write_canonical)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(op|current_op)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(char_conversion|current_char_conversion)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Atomic term processing -->
|
||||
<RegExpr String = "\b(atom_length|atom_concat|sub_atom)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(atom_chars|atom_codes|char_code)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\b(number_chars|number_codes)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Implementation defined hooks functions -->
|
||||
<RegExpr String = "\b(set_prolog_flag|current_prolog_flag)(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\bhalt\b" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\bhalt(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<!-- Variables -->
|
||||
<RegExpr String = "\b[A-Z_][A-Za-z0-9_]*" attribute = "Variable" context="#stay"/>
|
||||
<!-- Comments -->
|
||||
<DetectChar attribute="Comment" context="single line comment" char="%"/>
|
||||
<Detect2Chars attribute="Comment" context="multiline comment" char="/" char1="*"/>
|
||||
<!-- Strings and quoted atoms -->
|
||||
<DetectChar attribute="String" context="string" char=""" />
|
||||
<RegExpr String = "'" attribute="String" context="atom" />
|
||||
<!-- Numbers -->
|
||||
<RegExpr String = "0'[A-Za-z0-9]" attribute = "Number" context="#stay"/>
|
||||
<RegExpr String = "0b[0-1]+" attribute = "Number" context="#stay"/>
|
||||
<RegExpr String = "0o[0-7]+" attribute = "Number" context="#stay"/>
|
||||
<RegExpr String = "0x[0-9a-fA-F]+" attribute = "Number" context="#stay"/>
|
||||
<RegExpr String = "[0-9]+(\.[0-9]+)?([eE][-+][0-9]+)?" attribute = "Number" context="#stay"/>
|
||||
<!-- Message sending operators -->
|
||||
<StringDetect String = "::" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "^^" attribute="Operator" context="#stay" />
|
||||
<!-- External call -->
|
||||
<DetectChar attribute="Operator" context="#stay" char="{" beginRegion="external" />
|
||||
<DetectChar attribute="Operator" context="#stay" char="}" endRegion="external" />
|
||||
<!-- Logic and control -->
|
||||
<RegExpr String = "\bonce(?=[(])" attribute="Built-in" context="#stay" />
|
||||
<RegExpr String = "\brepeat\b" attribute="Built-in" context="#stay" />
|
||||
<!-- Bitwise functors -->
|
||||
<StringDetect String = ">>" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "<<" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "/\" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "\/" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "\\" attribute="Operator" context="#stay" />
|
||||
<!-- Arithemtic evaluation -->
|
||||
<RegExpr String = "\bis\b" attribute="Operator" context="#stay" />
|
||||
<!-- Arithemtic comparison -->
|
||||
<StringDetect String = "=:=" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "=\=" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "<" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "=<" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = ">" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = ">=" attribute="Operator" context="#stay" />
|
||||
<!-- Term creation and decomposition -->
|
||||
<StringDetect String = "=.." attribute="Operator" context="#stay" />
|
||||
<!-- Term unification -->
|
||||
<StringDetect String = "=" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "\=" attribute="Operator" context="#stay" />
|
||||
<!-- Term comparison -->
|
||||
<StringDetect String = "==" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "\==" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "@=<" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "@<" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "@>=" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "@>" attribute="Operator" context="#stay" />
|
||||
<!-- Evaluable functors -->
|
||||
<StringDetect String = "+" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "-" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "*" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "//" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "/" attribute="Operator" context="#stay" />
|
||||
<RegExpr String = "\brem\b" attribute="Operator" context="#stay" />
|
||||
<RegExpr String = "\bmod\b" attribute="Operator" context="#stay" />
|
||||
<!-- Other arithemtic functors -->
|
||||
<StringDetect String = "**" attribute="Operator" context="#stay" />
|
||||
<!-- DCG rules -->
|
||||
<StringDetect String = "-->" attribute="Operator" context="#stay" />
|
||||
<!-- Control constructs -->
|
||||
<StringDetect String = "!" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "->" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = ";" attribute="Operator" context="#stay" />
|
||||
<!-- Logic and control -->
|
||||
<StringDetect String = "\+" attribute="Operator" context="#stay" />
|
||||
<!-- Mode operators -->
|
||||
<StringDetect String = "?" attribute="Operator" context="#stay" />
|
||||
<StringDetect String = "@" attribute="Operator" context="#stay" />
|
||||
<!-- Clause operator -->
|
||||
<StringDetect String = ":-" attribute="Normal" context="#stay" />
|
||||
</context>
|
||||
|
||||
<context name="directive" attribute="Directive" lineEndContext="#stay">
|
||||
<!-- Entity directives -->
|
||||
<RegExpr String = "\b(category|object|protocol)(?=[(])" attribute="Directive" context="entityrelations" />
|
||||
<RegExpr String = "\b(end_category|end_object|end_protocol)[.]" attribute="Directive" context="#pop" />
|
||||
<!-- Predicate scope directives -->
|
||||
<RegExpr String = "\b(public|protected|private)(?=[(])" attribute="Directive" context="#pop" />
|
||||
<!-- Other directives -->
|
||||
<RegExpr String = "\binitialization(?=[(])" attribute="Directive" context="#pop" />
|
||||
<RegExpr String = "\b(info|mode)(?=[(])" attribute="Directive" context="#pop" />
|
||||
<RegExpr String = "\bdynamic[.]" attribute="Directive" context="#pop" />
|
||||
<RegExpr String = "\b(dynamic|discontiguous|metapredicate)(?=[(])" attribute="Directive" context="#pop" />
|
||||
<RegExpr String = "\bop(?=[(])" attribute="Directive" context="#pop" />
|
||||
<RegExpr String = "\b(calls|uses)(?=[(])" attribute="Directive" context="#pop" />
|
||||
</context>
|
||||
|
||||
<context name="entityrelations" attribute="Normal" lineEndContext="#stay">
|
||||
<RegExpr String = "\b(extends|implements|imports|instantiates|specializes)(?=[(])" attribute="Directive" context="#stay" />
|
||||
<Detect2Chars attribute="Normal" context="normal" char=")" char1="." />
|
||||
</context>
|
||||
|
||||
<context name="single line comment" attribute="Comment" lineEndContext="#pop" />
|
||||
|
||||
<context name="multiline comment" attribute="Comment" lineEndContext="#stay">
|
||||
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
|
||||
</context>
|
||||
|
||||
<context name="string" attribute="String" lineEndContext="#stay" >
|
||||
<DetectChar attribute="String" context="#pop" char=""" />
|
||||
</context>
|
||||
|
||||
<context name="atom" attribute="String" lineEndContext="#stay">
|
||||
<DetectChar attribute="String" context="#pop" char="'" />
|
||||
</context>
|
||||
|
||||
</contexts>
|
||||
|
||||
<itemDatas>
|
||||
<itemData name="Normal" defStyleNum="dsNormal" />
|
||||
<itemData name="Directive" defStyleNum="dsKeyword" />
|
||||
<itemData name="Built-in" defStyleNum="dsKeyword" />
|
||||
<itemData name="Operator" defStyleNum="dsDataType" />
|
||||
<itemData name="Comment" defStyleNum="dsComment" />
|
||||
<itemData name="Number" defStyleNum="dsDecVal" />
|
||||
<itemData name="String" defStyleNum="dsString"/>
|
||||
<itemData name="Variable" defStyleNum="dsOthers"/>
|
||||
</itemDatas>
|
||||
|
||||
</highlighting>
|
||||
|
||||
<general>
|
||||
<comments>
|
||||
<comment name="singleLine" start="%" />
|
||||
<comment name="multiLine" start="/*" end="*/" />
|
||||
</comments>
|
||||
<keywords casesensitive="true" />
|
||||
</general>
|
||||
|
||||
</language>
|
||||
|
@ -1,14 +1,14 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains a file that provides syntax highlighting
|
||||
for editing Logtalk source files with the text editor NEdit 5.2
|
||||
(http://www.nedit.org).
|
||||
or later version (http://www.nedit.org/).
|
||||
|
||||
|
||||
To install:
|
||||
|
@ -2,7 +2,7 @@
|
||||
!
|
||||
! Author: Paulo Moura (pmoura at logtalk.org)
|
||||
!
|
||||
! Last changed in: July 7, 2003
|
||||
! Last changed in: February 2, 2004
|
||||
!
|
||||
!
|
||||
! To install this patterns file:
|
||||
@ -21,33 +21,49 @@
|
||||
nedit.fileVersion: 5.2
|
||||
|
||||
nedit.highlightPatterns: Logtalk:1:0{\n\
|
||||
Entity directives:":\\-\\sobject|:\\-\\sprotocol|:\\-\\scategory|:\\-\\send_object|:\\-\\send_protocol|:\\-\\send_category":::Keyword::\n\
|
||||
Entity relations:"<(instantiates|specializes|extends|imports|implements)>":::Keyword::\n\
|
||||
Directives:":\\-\\sinitialization|:\\-\\sinfo|:\\-\\smode|:\\-\\sdynamic|:\\-\\sdiscontiguous|:\\-\\spublic|:\\-\\sprotected|:\\-\\sprivate|:\\-\\smetapredicate|:\\-\\sop|:\\-\\scalls|:\\-\\suses":::Keyword::\n\
|
||||
Clause operators:":\\-|\\.":::Keyword::\n\
|
||||
Term testing:"<[^+?@-](var|atom|integer|float|atomic|compound|nonvar|number)>":::Subroutine1::\n\
|
||||
Entity directives:"(?<=:\\-\\s)(object|protocol|category)(?=[(])":::Preprocessor::\n\
|
||||
Entity directives:"(?<=:\\-\\s)(end_object|end_protocol|end_category)(?=[.])":::Preprocessor::\n\
|
||||
Entity relations:"<(instantiates|specializes|extends|imports|implements)(?=[(])":::Preprocessor::\n\
|
||||
Directives:"(?<=:\\-\\s)(initialization|info|mode|dynamic|discontiguous|public|protected|private|metapredicate|op|calls|uses)(?=[(])":::Preprocessor::\n\
|
||||
Directives:"(?<=:\\-\\s)dynamic>":::Preprocessor::\n\
|
||||
Clause operators:":\\-|\\.|,":::Keyword::\n\
|
||||
Term testing:"(?<![+?@-])(var|atom|integer|float|atomic|compound|nonvar|number)(?=[(])":::Subroutine::\n\
|
||||
Message sending operators:"::|\\^\\^":::Keyword::\n\
|
||||
Control constructs:"!|,|;|\\-\\-\\>|\\-\\>|<(true|fail|call|catch|throw)>":::Subroutine::\n\
|
||||
Control constructs:"!|;|\\-\\-\\>|\\-\\>|<(true|fail)>":::Subroutine::\n\
|
||||
Control constructs:"<(call|catch|throw)(?=[(])":::Subroutine::\n\
|
||||
Block comment:"/\\*":"\\*/"::Comment::\n\
|
||||
Line comment:"%":"$"::Comment::\n\
|
||||
Number:"0'":::Plain::\n\
|
||||
Number:"0'[A-Za-z0-9]":::Numeric Const::\n\
|
||||
Number:"0b[0-1]+":::Numeric Const::\n\
|
||||
Number:"0o[0-7]+":::Numeric Const::\n\
|
||||
Number:"0x[A-Fa-f0-9]+":::Numeric Const::\n\
|
||||
Number:"[0-9]+(\.[0-9]+)?([eE][-+][0-9]+)?":::Numeric Const::\n\
|
||||
String:"""":""""::String::\n\
|
||||
String:"'":"'"::String::\n\
|
||||
Built-in methods:"<(parameter|self|sender|this|current_predicate|predicate_property|abolish|asserta|assertz|retractall|retract|bagof|findall|forall|setof|before|after|phrase)>":::Subroutine::\n\
|
||||
Arithmetic operators:"<is>|\\+|\\*|\\-|/|=:=|=\\\\=|=\\<|\\>=|\\<|\\>":::Subroutine1::\n\
|
||||
Built-in predicates:"<(current_object|current_protocol|current_category|create_object|create_protocol|create_category|object_property|protocol_property|category_property|abolish_object|abolish_protocol|abolish_vategory|extends_object|extends_protocol|omplements_protocol|instantiates_object|specializes_object|imports_category|abolish_events|current_events|define_events|current_logtalk_flag|set_logtalk_flag|logtalk_compile|logtalk_load|forall|retractall)>":::Subroutine1::\n\
|
||||
Term unification:"=|<unify_with_occurs_check>|\\\\=":::Subroutine1::\n\
|
||||
Term comparison:"@=\\<|==|\\\\==|@\\>=|@\\<|@\\>":::Subroutine1::\n\
|
||||
Term creation and decomposition:"<(functor|arg|copy_term)>|=\\.\\.":::Subroutine1::\n\
|
||||
Mode operators:"\\?|@":::Subroutine1::\n\
|
||||
Stream selection and control:"<(current_input|current_output|set_input|set_output|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)>":::Subroutine1::\n\
|
||||
Character input-output:"<(get_char|get_code|peek_char|peek_code|put_char|put_code|nl)>":::Subroutine1::\n\
|
||||
Byte input-output:"<(get_byte|peek_byte|put_byte)>":::Subroutine1::\n\
|
||||
Term input-output:"<(read_term|read|write_canonical|write_term|writeq|write|current_op|op|current_char_conversion|char_conversion)>":::Subroutine1::\n\
|
||||
Logic and control:"\\\\\\+|<(once|repeat)>":::Subroutine::\n\
|
||||
Atomic term processing:"<(atom_length|atom_concat|sub_atom|atom_chars|atom_codes|char_code|number_chars|number_codes)>":::Subroutine1::\n\
|
||||
Implementation defined hooks:"<(set_prolog_flag|current_prolog_flag)>":::Subroutine1::\n\
|
||||
Evaluable functors:"\\+|-|\\*|//|/|<(rem|mod|abs|sign|float_integer_part|float_fractional_part|float|floor|truncate|round|ceiling)>":::Subroutine1::\n\
|
||||
Other arithemtic functors:"\\*\\*|<(sin|cos|atan|exp|log|sqrt)>":::Subroutine1::\n\
|
||||
Bitwise functors:">>|<<|/\\\\|\\\\/|\\\\":::Subroutine1::\n\
|
||||
Built-in methods:"<(parameter|self|sender|this|current_predicate|predicate_property|abolish|asserta|assertz|retractall|retract|bagof|findall|forall|setof|before|after|phrase)(?=[(])":::Subroutine::\n\
|
||||
Arithmetic operators:"<is>|\\+|\\*|\\-|/|=:=|=\\\\=|=\\<|\\>=|\\<|\\>":::Subroutine::\n\
|
||||
Built-in predicates:"<(current_object|current_protocol|current_category|create_object|create_protocol|create_category|object_property|protocol_property|category_property|abolish_object|abolish_protocol|abolish_vategory|extends_object|extends_protocol|omplements_protocol|instantiates_class|specializes_class|imports_category|abolish_events|current_events|define_events|current_logtalk_flag|set_logtalk_flag|logtalk_compile|logtalk_load|forall|retractall)(?=[(])":::Subroutine::\n\
|
||||
Term unification:"=|\\\\=":::Subroutine::\n\
|
||||
Term unification:"<unify_with_occurs_check(?=[(])":::Subroutine::\n\
|
||||
Term comparison:"@=\\<|==|\\\\==|@\\>=|@\\<|@\\>":::Subroutine::\n\
|
||||
Term creation and decomposition:"<(functor|arg|copy_term)(?=[(])":::Subroutine::\n\
|
||||
Term creation and decomposition:"=\\.\\.":::Subroutine::\n\
|
||||
Mode operators:"\\?|@":::Subroutine::\n\
|
||||
Stream selection and control:"<(current_input|current_output|set_input|set_output|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)(?=[(])":::Subroutine::\n\
|
||||
Stream selection and control:"<(flush_output|at_end_of_stream)>":::Subroutine::\n\
|
||||
Character input-output:"<(get_char|get_code|peek_char|peek_code|put_char|put_code|nl)(?=[(])":::Subroutine::\n\
|
||||
Character input-output:"<nl>":::Subroutine::\n\
|
||||
Byte input-output:"<(get_byte|peek_byte|put_byte)(?=[(])":::Subroutine::\n\
|
||||
Term input-output:"<(read_term|read|write_canonical|write_term|writeq|write|current_op|op|current_char_conversion|char_conversion)(?=[(])":::Subroutine::\n\
|
||||
Logic and control:"<once(?=[(])":::Subroutine::\n\
|
||||
Logic and control:"\\\\\\+|<repeat>":::Subroutine::\n\
|
||||
Atomic term processing:"<(atom_length|atom_concat|sub_atom|atom_chars|atom_codes|char_code|number_chars|number_codes)(?=[(])":::Subroutine::\n\
|
||||
Implementation defined hooks:"<(set_prolog_flag|current_prolog_flag|halt)(?=[(])":::Subroutine::\n\
|
||||
Implementation defined hooks:"<halt>":::Subroutine::\n\
|
||||
Evaluable functors:"<(rem|mod|abs|sign|float_integer_part|float_fractional_part|float|floor|truncate|round|ceiling)(?=[(])":::Subroutine::\n\
|
||||
Evaluable functors:"\\+|-|\\*|//|/":::Subroutine::\n\
|
||||
Other arithemtic functors:"\\*\\*":::Subroutine::\n\
|
||||
Other arithemtic functors:"\\*\\*|<(sin|cos|atan|exp|log|sqrt)(?=[(])":::Subroutine::\n\
|
||||
Bitwise functors:">>|<<|/\\\\|\\\\/|\\\\":::Subroutine::\n\
|
||||
}
|
||||
nedit.languageModes: Logtalk:.lgt::::4:4:\n\
|
||||
nedit.languageModes: Logtalk:.lgt .loader::::4:4:\n\
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
@ -11,8 +11,12 @@ for editing Logtalk source files with the SubEthaEdit text editor
|
||||
(http://www.codingmonkeys.de/subethaedit/).
|
||||
|
||||
|
||||
To install copy the file "logtalk.plist" to the folder
|
||||
"~/Library/Application Support/SubEthaEdit/Syntax Definitions/" or to
|
||||
"/Library/Application Support/SubEthaEdit/Syntax Definitions/"
|
||||
(create the folder if it does not exist).
|
||||
To install copy the file "logtalk.plist" either to the folder:
|
||||
|
||||
~/Library/Application Support/SubEthaEdit/Syntax Definitions/
|
||||
|
||||
or to the folder:
|
||||
|
||||
/Library/Application Support/SubEthaEdit/Syntax Definitions/
|
||||
|
||||
(create the folder if it does not exist).
|
||||
|
@ -8,7 +8,7 @@
|
||||
<key>Name</key>
|
||||
<string>Logtalk</string>
|
||||
<key>Extensions</key>
|
||||
<string>lgt</string>
|
||||
<string>lgt,loader</string>
|
||||
<key>Valid Characters for Variables</key>
|
||||
<string>_0987654321abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
|
||||
</dict>
|
||||
@ -18,7 +18,24 @@
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Entity Directives</string>
|
||||
<string>Variables</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.275</real>
|
||||
<real>0.275</real>
|
||||
<real>0.275</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>[^[:lower:]]([A-Z_][A-Za-z0-9_]*)[^[:alnum:]]</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Directives</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.408</real>
|
||||
@ -29,11 +46,11 @@
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>\:\-[[:space:]](object)</string>
|
||||
<string>\:\-[[:space:]](object)\(</string>
|
||||
<string>\:\-[[:space:]](end_object)\.</string>
|
||||
<string>\:\-[[:space:]](protocol)</string>
|
||||
<string>\:\-[[:space:]](protocol)\(</string>
|
||||
<string>\:\-[[:space:]](end_protocol)\.</string>
|
||||
<string>\:\-[[:space:]](category)</string>
|
||||
<string>\:\-[[:space:]](category)\(</string>
|
||||
<string>\:\-[[:space:]](end_category)\.</string>
|
||||
<string>\:\-[[:space:]](initialization)\(</string>
|
||||
<string>\:\-[[:space:]](info)\(</string>
|
||||
@ -124,8 +141,11 @@
|
||||
<string>(call)\(</string>
|
||||
<string>(catch)\(</string>
|
||||
<string>(throw)\(</string>
|
||||
<string>(true)</string>
|
||||
<string>(fail)</string>
|
||||
</array>
|
||||
<key>Plain Strings</key>
|
||||
<array>
|
||||
<string>true</string>
|
||||
<string>fail</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
@ -192,8 +212,8 @@
|
||||
<string>(extends_object)\(</string>
|
||||
<string>(extends_protocol)\(</string>
|
||||
<string>(implements_protocol)\(</string>
|
||||
<string>(instantiates_object)\(</string>
|
||||
<string>(specializes_object)\(</string>
|
||||
<string>(instantiates_class)\(</string>
|
||||
<string>(specializes_class)\(</string>
|
||||
<string>(imports_category)\(</string>
|
||||
<string>(abolish_events)\(</string>
|
||||
<string>(current_event)\(</string>
|
||||
@ -203,7 +223,6 @@
|
||||
<string>(logtalk_compile)\(</string>
|
||||
<string>(logtalk_load)\(</string>
|
||||
<string>(forall)\(</string>
|
||||
<string>(logtalk_version)\(</string>
|
||||
<string>(retractall)\(</string>
|
||||
</array>
|
||||
</dict>
|
||||
@ -295,9 +314,9 @@
|
||||
<string>(set_output)\(</string>
|
||||
<string>(open)\(</string>
|
||||
<string>(close)\(</string>
|
||||
<string>(flush_output)</string>
|
||||
<string>(flush_output)\(</string>
|
||||
<string>(stream_property)\(</string>
|
||||
<string>(at_end_of_stream)</string>
|
||||
<string>(at_end_of_stream)\(</string>
|
||||
<string>(set_stream_position)\(</string>
|
||||
<!-- Character input/output -->
|
||||
<string>(get_char)\(</string>
|
||||
@ -306,7 +325,7 @@
|
||||
<string>(peek_code)\(</string>
|
||||
<string>(put_char)\(</string>
|
||||
<string>(put_code)\(</string>
|
||||
<string>(nl)</string>
|
||||
<string>(nl)\(</string>
|
||||
<!-- Byte input/output -->
|
||||
<string>(get_byte)\(</string>
|
||||
<string>(peek_byte)\(</string>
|
||||
@ -325,7 +344,6 @@
|
||||
<!-- Logic and control -->
|
||||
<string>(\\\+)[[:space:]]+</string>
|
||||
<string>(once)\(</string>
|
||||
<string>(repeat)</string>
|
||||
<!-- Atomic term processing -->
|
||||
<string>(atom_length)\(</string>
|
||||
<string>(atom_concat)\(</string>
|
||||
@ -338,7 +356,19 @@
|
||||
<!-- Implementation defined hooks functions -->
|
||||
<string>(set_prolog_flag)\(</string>
|
||||
<string>(current_prolog_flag)\(</string>
|
||||
<string>(halt)</string>
|
||||
<string>(halt)\(</string>
|
||||
</array>
|
||||
<key>Plain Strings</key>
|
||||
<array>
|
||||
<!-- Stream selection and control -->
|
||||
<string>flush_output</string>
|
||||
<string>at_end_of_stream</string>
|
||||
<!-- Character input/output -->
|
||||
<string>nl</string>
|
||||
<!-- Logic and control -->
|
||||
<string>repeat</string>
|
||||
<!-- Implementation defined hooks functions -->
|
||||
<string>halt</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
@ -355,10 +385,11 @@
|
||||
<false/>
|
||||
<key>Plain Strings</key>
|
||||
<array>
|
||||
<string>[0-9]+\.*[0-9]+([eE][-+][1-9][0-9]*)?</string>
|
||||
<string>[0-9]+((\.[0-9]+)?([eE][-+][0-9]+)?)?</string>
|
||||
<string>0b[0-1]+</string>
|
||||
<string>0o[0-8]+</string>
|
||||
<string>0o[0-7]+</string>
|
||||
<string>0x[0-9a-fA-F]+</string>
|
||||
<string>0'[0-9a-zA-Z]</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
@ -380,23 +411,6 @@
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Character Code Constants</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.000</real>
|
||||
<real>0.000</real>
|
||||
<real>0.404</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>(0'[[:alnum:]])</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Single Line Comment</string>
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -18,4 +18,33 @@ comment
|
||||
|
||||
:- dynamic.
|
||||
|
||||
|
||||
:- public(aaa/2).
|
||||
|
||||
:- mode(aaa(?integer, ?integer), zero_or_one).
|
||||
|
||||
:- info(position/2, [
|
||||
comment is 'Predicate brief description.',
|
||||
argnames is ['Arg1', 'Arg2']]).
|
||||
|
||||
|
||||
:- protected(bbb/2).
|
||||
|
||||
:- mode(bbb(+integer, -float), one).
|
||||
|
||||
:- info(bbb/2, [
|
||||
comment is 'Predicate brief description.',
|
||||
argnames is ['Arg1', 'Arg2']]).
|
||||
|
||||
|
||||
:- private(ccc/2).
|
||||
:- dynamic(ccc/2).
|
||||
|
||||
:- mode(ccc(@atom, ?atom), one_or_more).
|
||||
|
||||
:- info(ccc/2, [
|
||||
comment is 'Predicate brief description.',
|
||||
argnames is ['Arg1', 'Arg2']]).
|
||||
|
||||
|
||||
:- end_protocol.
|
||||
|
@ -1,8 +1,8 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
|
@ -117,8 +117,8 @@ abolish_category
|
||||
extends_object
|
||||
extends_protocol
|
||||
implements_protocol
|
||||
instantiates_object
|
||||
specializes_object
|
||||
instantiates_class
|
||||
specializes_class
|
||||
imports_category
|
||||
abolish_events
|
||||
current_event
|
||||
|
@ -1,23 +1,27 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.5
|
||||
Release 2.15.6
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains a file that provides syntax highlighting
|
||||
for editing Logtalk source files with the text editor Vim 6.1
|
||||
(http://www.vim.org).
|
||||
for editing Logtalk source files with the text editor VIM 6.1 or
|
||||
later version (http://www.vim.org).
|
||||
|
||||
|
||||
To install:
|
||||
Recent versions of VIM already contain support for Logtalk. However,
|
||||
this directory may contain an updated syntax file. If that is the
|
||||
case, install the syntax file by performing the following steps:
|
||||
|
||||
1. Copy the file logtalk.vim to the "syntax" sub-directory in your
|
||||
VIM installation directory.
|
||||
|
||||
2. Add the following entry to the "filetype.vim" configuration
|
||||
file (if not present):
|
||||
2. Add the following entries to the "filetype.vim" configuration
|
||||
file (only if not already present):
|
||||
|
||||
" Logtalk
|
||||
" Logtalk source files
|
||||
au BufNewFile,BufRead *.lgt setf logtalk
|
||||
|
||||
" Logtalk source file loader
|
||||
au BufNewFile,BufRead *.loader setf logtalk
|
||||
|
@ -2,7 +2,7 @@
|
||||
"
|
||||
" Language: Logtalk
|
||||
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
||||
" Last Change: 2003 July 7
|
||||
" Last Change: 2004 February 2
|
||||
|
||||
|
||||
" Quit when a syntax file was already loaded:
|
||||
@ -19,6 +19,11 @@ endif
|
||||
syn case match
|
||||
|
||||
|
||||
" Logtalk variables
|
||||
|
||||
syn match logtalkVariable "\<\(\u\|_\)\(\w\)*\>"
|
||||
|
||||
|
||||
" Logtalk clause functor
|
||||
|
||||
syn match logtalkOperator ":-"
|
||||
@ -27,12 +32,7 @@ syn match logtalkOperator ":-"
|
||||
" Logtalk quoted atoms and strings
|
||||
|
||||
syn region logtalkString start=+"+ skip=+\\"+ end=+"+
|
||||
syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+
|
||||
|
||||
|
||||
" Logtalk character code constants
|
||||
|
||||
syn match logtalkNumber "0'"
|
||||
syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+
|
||||
|
||||
|
||||
" Logtalk message sending operators
|
||||
@ -43,7 +43,7 @@ syn match logtalkOperator "\^\^"
|
||||
|
||||
" Logtalk external call
|
||||
|
||||
syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL
|
||||
syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL
|
||||
|
||||
|
||||
" Logtalk opening entity directives
|
||||
@ -65,8 +65,8 @@ syn match logtalkCloseEntityDir ":- end_category\."
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="instantiates(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="specializes(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="extends(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="imports(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="implements(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="imports(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="implements(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained
|
||||
|
||||
|
||||
" Logtalk directives
|
||||
@ -88,69 +88,69 @@ syn region logtalkDir matchgroup=logtalkDirTag start=":- uses(" matchgroup=log
|
||||
|
||||
" Logtalk built-in predicates
|
||||
|
||||
syn keyword logtalkBuiltIn current_object
|
||||
syn keyword logtalkBuiltIn current_protocol
|
||||
syn keyword logtalkBuiltIn current_category
|
||||
syn match logtalkBuiltIn "\<current_object\ze("
|
||||
syn match logtalkBuiltIn "\<current_protocol\ze("
|
||||
syn match logtalkBuiltIn "\<current_category\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn create_object
|
||||
syn keyword logtalkBuiltIn create_protocol
|
||||
syn keyword logtalkBuiltIn create_category
|
||||
syn match logtalkBuiltIn "\<create_object\ze("
|
||||
syn match logtalkBuiltIn "\<create_protocol\ze("
|
||||
syn match logtalkBuiltIn "\<create_category\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn object_property
|
||||
syn keyword logtalkBuiltIn protocol_property
|
||||
syn keyword logtalkBuiltIn category_property
|
||||
syn match logtalkBuiltIn "\<object_property\ze("
|
||||
syn match logtalkBuiltIn "\<protocol_property\ze("
|
||||
syn match logtalkBuiltIn "\<category_property\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn abolish_object
|
||||
syn keyword logtalkBuiltIn abolish_protocol
|
||||
syn keyword logtalkBuiltIn abolish_category
|
||||
syn match logtalkBuiltIn "\<abolish_object\ze("
|
||||
syn match logtalkBuiltIn "\<abolish_protocol\ze("
|
||||
syn match logtalkBuiltIn "\<abolish_category\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn extends_object
|
||||
syn keyword logtalkBuiltIn extends_protocol
|
||||
syn keyword logtalkBuiltIn implements_protocol
|
||||
syn keyword logtalkBuiltIn instantiates_object
|
||||
syn keyword logtalkBuiltIn specializes_object
|
||||
syn keyword logtalkBuiltIn imports_category
|
||||
syn match logtalkBuiltIn "\<extends_object\ze("
|
||||
syn match logtalkBuiltIn "\<extends_protocol\ze("
|
||||
syn match logtalkBuiltIn "\<implements_protocol\ze("
|
||||
syn match logtalkBuiltIn "\<instantiates_class\ze("
|
||||
syn match logtalkBuiltIn "\<specializes_class\ze("
|
||||
syn match logtalkBuiltIn "\<imports_category\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn abolish_events
|
||||
syn keyword logtalkBuiltIn current_event
|
||||
syn keyword logtalkBuiltIn define_events
|
||||
syn match logtalkBuiltIn "\<abolish_events\ze("
|
||||
syn match logtalkBuiltIn "\<current_event\ze("
|
||||
syn match logtalkBuiltIn "\<define_events\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn current_logtalk_flag
|
||||
syn keyword logtalkBuiltIn set_logtalk_flag
|
||||
syn match logtalkBuiltIn "\<current_logtalk_flag\ze("
|
||||
syn match logtalkBuiltIn "\<set_logtalk_flag\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn logtalk_compile
|
||||
syn keyword logtalkBuiltIn logtalk_load
|
||||
syn match logtalkBuiltIn "\<logtalk_compile\ze("
|
||||
syn match logtalkBuiltIn "\<logtalk_load\ze("
|
||||
|
||||
syn keyword logtalkBuiltIn forall
|
||||
syn keyword logtalkBuiltIn retractall
|
||||
syn match logtalkBuiltIn "\<forall\ze("
|
||||
syn match logtalkBuiltIn "\<retractall\ze("
|
||||
|
||||
|
||||
" Logtalk built-in methods
|
||||
|
||||
syn keyword logtalkBuiltInMethod parameter
|
||||
syn keyword logtalkBuiltInMethod self
|
||||
syn keyword logtalkBuiltInMethod sender
|
||||
syn keyword logtalkBuiltInMethod this
|
||||
syn match logtalkBuiltInMethod "\<parameter\ze("
|
||||
syn match logtalkBuiltInMethod "\<self\ze("
|
||||
syn match logtalkBuiltInMethod "\<sender\ze("
|
||||
syn match logtalkBuiltInMethod "\<this\ze("
|
||||
|
||||
syn keyword logtalkBuiltInMethod current_predicate
|
||||
syn keyword logtalkBuiltInMethod predicate_property
|
||||
syn match logtalkBuiltInMethod "\<current_predicate\ze("
|
||||
syn match logtalkBuiltInMethod "\<predicate_property\ze("
|
||||
|
||||
syn keyword logtalkBuiltInMethod abolish
|
||||
syn keyword logtalkBuiltInMethod asserta
|
||||
syn keyword logtalkBuiltInMethod assertz
|
||||
syn keyword logtalkBuiltInMethod clause
|
||||
syn keyword logtalkBuiltInMethod retract
|
||||
syn keyword logtalkBuiltInMethod retractall
|
||||
syn match logtalkBuiltInMethod "\<abolish\ze("
|
||||
syn match logtalkBuiltInMethod "\<asserta\ze("
|
||||
syn match logtalkBuiltInMethod "\<assertz\ze("
|
||||
syn match logtalkBuiltInMethod "\<clause\ze("
|
||||
syn match logtalkBuiltInMethod "\<retract\ze("
|
||||
syn match logtalkBuiltInMethod "\<retractall\ze("
|
||||
|
||||
syn keyword logtalkBuiltInMethod bagof
|
||||
syn keyword logtalkBuiltInMethod findall
|
||||
syn keyword logtalkBuiltInMethod forall
|
||||
syn keyword logtalkBuiltInMethod setof
|
||||
syn match logtalkBuiltInMethod "\<bagof\ze("
|
||||
syn match logtalkBuiltInMethod "\<findall\ze("
|
||||
syn match logtalkBuiltInMethod "\<forall\ze("
|
||||
syn match logtalkBuiltInMethod "\<setof\ze("
|
||||
|
||||
syn keyword logtalkBuiltInMethod before
|
||||
syn keyword logtalkBuiltInMethod after
|
||||
syn match logtalkBuiltInMethod "\<before\ze("
|
||||
syn match logtalkBuiltInMethod "\<after\ze("
|
||||
|
||||
syn keyword logtalkBuiltInMethod phrase
|
||||
syn match logtalkBuiltInMethod "\<phrase\ze("
|
||||
|
||||
|
||||
" Mode operators
|
||||
@ -161,35 +161,35 @@ syn match logtalkOperator "@"
|
||||
|
||||
" Control constructs
|
||||
|
||||
syn keyword logtalkKeyword true
|
||||
syn keyword logtalkKeyword fail
|
||||
syn keyword logtalkKeyword call
|
||||
syn match logtalkKeyword "\<true\>"
|
||||
syn match logtalkKeyword "\<fail\>"
|
||||
syn match logtalkKeyword "\<call\ze("
|
||||
syn match logtalkOperator "!"
|
||||
syn match logtalkOperator ","
|
||||
syn match logtalkOperator ";"
|
||||
syn match logtalkOperator "-->"
|
||||
syn match logtalkOperator "->"
|
||||
syn keyword logtalkKeyword catch
|
||||
syn keyword logtalkKeyword throw
|
||||
syn match logtalkKeyword "\<catch\ze("
|
||||
syn match logtalkKeyword "\<throw\ze("
|
||||
|
||||
|
||||
" Term unification
|
||||
|
||||
syn match logtalkOperator "="
|
||||
syn keyword logtalkKeyword unify_with_occurs_check
|
||||
syn match logtalkKeyword "\<unify_with_occurs_check\ze("
|
||||
syn match logtalkOperator "\\="
|
||||
|
||||
|
||||
" Term testing
|
||||
|
||||
syn keyword logtalkKeyword var
|
||||
syn keyword logtalkKeyword atom
|
||||
syn keyword logtalkKeyword integer
|
||||
syn keyword logtalkKeyword float
|
||||
syn keyword logtalkKeyword atomic
|
||||
syn keyword logtalkKeyword compound
|
||||
syn keyword logtalkKeyword nonvar
|
||||
syn keyword logtalkKeyword number
|
||||
syn match logtalkKeyword "\<var\ze("
|
||||
syn match logtalkKeyword "\<atom\ze("
|
||||
syn match logtalkKeyword "\<integer\ze("
|
||||
syn match logtalkKeyword "\<float\ze("
|
||||
syn match logtalkKeyword "\<atomic\ze("
|
||||
syn match logtalkKeyword "\<compound\ze("
|
||||
syn match logtalkKeyword "\<nonvar\ze("
|
||||
syn match logtalkKeyword "\<number\ze("
|
||||
|
||||
|
||||
" Term comparison
|
||||
@ -204,10 +204,10 @@ syn match logtalkOperator "@>="
|
||||
|
||||
" Term creation and decomposition
|
||||
|
||||
syn keyword logtalkKeyword functor
|
||||
syn keyword logtalkKeyword arg
|
||||
syn match logtalkKeyword "\<functor\ze("
|
||||
syn match logtalkKeyword "\<arg\ze("
|
||||
syn match logtalkOperator "=\.\."
|
||||
syn keyword logtalkKeyword copy_term
|
||||
syn match logtalkKeyword "\<copy_term\ze("
|
||||
|
||||
|
||||
" Arithemtic evaluation
|
||||
@ -227,74 +227,78 @@ syn match logtalkOperator ">="
|
||||
|
||||
" Stream selection and control
|
||||
|
||||
syn keyword logtalkKeyword current_input
|
||||
syn keyword logtalkKeyword current_output
|
||||
syn keyword logtalkKeyword set_input
|
||||
syn keyword logtalkKeyword set_output
|
||||
syn keyword logtalkKeyword open
|
||||
syn keyword logtalkKeyword close
|
||||
syn keyword logtalkKeyword flush_output
|
||||
syn keyword logtalkKeyword stream_property
|
||||
syn keyword logtalkKeyword at_end_of_stream
|
||||
syn keyword logtalkKeyword set_stream_position
|
||||
syn match logtalkKeyword "\<current_input\ze("
|
||||
syn match logtalkKeyword "\<current_output\ze("
|
||||
syn match logtalkKeyword "\<set_input\ze("
|
||||
syn match logtalkKeyword "\<set_output\ze("
|
||||
syn match logtalkKeyword "\<open\ze("
|
||||
syn match logtalkKeyword "\<close\ze("
|
||||
syn match logtalkKeyword "\<flush_output\ze("
|
||||
syn match logtalkKeyword "\<flush_output\>"
|
||||
syn match logtalkKeyword "\<stream_property\ze("
|
||||
syn match logtalkKeyword "\<at_end_of_stream\ze("
|
||||
syn match logtalkKeyword "\<at_end_of_stream\>"
|
||||
syn match logtalkKeyword "\<set_stream_position\ze("
|
||||
|
||||
|
||||
" Character input/output
|
||||
|
||||
syn keyword logtalkKeyword get_char
|
||||
syn keyword logtalkKeyword get_code
|
||||
syn keyword logtalkKeyword peek_char
|
||||
syn keyword logtalkKeyword peek_code
|
||||
syn keyword logtalkKeyword put_char
|
||||
syn keyword logtalkKeyword put_code
|
||||
syn keyword logtalkKeyword nl
|
||||
syn match logtalkKeyword "\<get_char\ze("
|
||||
syn match logtalkKeyword "\<get_code\ze("
|
||||
syn match logtalkKeyword "\<peek_char\ze("
|
||||
syn match logtalkKeyword "\<peek_code\ze("
|
||||
syn match logtalkKeyword "\<put_char\ze("
|
||||
syn match logtalkKeyword "\<put_code\ze("
|
||||
syn match logtalkKeyword "\<nl\ze("
|
||||
syn match logtalkKeyword "\<nl\>"
|
||||
|
||||
|
||||
" Byte input/output
|
||||
|
||||
syn keyword logtalkKeyword get_byte
|
||||
syn keyword logtalkKeyword peek_byte
|
||||
syn keyword logtalkKeyword put_byte
|
||||
syn match logtalkKeyword "\<get_byte\ze("
|
||||
syn match logtalkKeyword "\<peek_byte\ze("
|
||||
syn match logtalkKeyword "\<put_byte\ze("
|
||||
|
||||
|
||||
" Term input/output
|
||||
|
||||
syn keyword logtalkKeyword read_term
|
||||
syn keyword logtalkKeyword read
|
||||
syn keyword logtalkKeyword write_term
|
||||
syn keyword logtalkKeyword write
|
||||
syn keyword logtalkKeyword writeq
|
||||
syn keyword logtalkKeyword write_canonical
|
||||
syn keyword logtalkKeyword op
|
||||
syn keyword logtalkKeyword current_op
|
||||
syn keyword logtalkKeyword char_conversion
|
||||
syn keyword logtalkKeyword current_char_conversion
|
||||
syn match logtalkKeyword "\<read_term\ze("
|
||||
syn match logtalkKeyword "\<read\ze("
|
||||
syn match logtalkKeyword "\<write_term\ze("
|
||||
syn match logtalkKeyword "\<write\ze("
|
||||
syn match logtalkKeyword "\<writeq\ze("
|
||||
syn match logtalkKeyword "\<write_canonical\ze("
|
||||
syn match logtalkKeyword "\<op\ze("
|
||||
syn match logtalkKeyword "\<current_op\ze("
|
||||
syn match logtalkKeyword "\<char_conversion\ze("
|
||||
syn match logtalkKeyword "\<current_char_conversion\ze("
|
||||
|
||||
|
||||
" Logic and control
|
||||
|
||||
syn match logtalkOperator "\\+"
|
||||
syn keyword logtalkKeyword once
|
||||
syn keyword logtalkKeyword repeat
|
||||
syn match logtalkKeyword "\<once\ze("
|
||||
syn match logtalkKeyword "\<repeat\>"
|
||||
|
||||
|
||||
" Atomic term processing
|
||||
|
||||
syn keyword logtalkKeyword atom_length
|
||||
syn keyword logtalkKeyword atom_concat
|
||||
syn keyword logtalkKeyword sub_atom
|
||||
syn keyword logtalkKeyword atom_chars
|
||||
syn keyword logtalkKeyword atom_codes
|
||||
syn keyword logtalkKeyword char_code
|
||||
syn keyword logtalkKeyword number_chars
|
||||
syn keyword logtalkKeyword number_codes
|
||||
syn match logtalkKeyword "\<atom_length\ze("
|
||||
syn match logtalkKeyword "\<atom_concat\ze("
|
||||
syn match logtalkKeyword "\<sub_atom\ze("
|
||||
syn match logtalkKeyword "\<atom_chars\ze("
|
||||
syn match logtalkKeyword "\<atom_codes\ze("
|
||||
syn match logtalkKeyword "\<char_code\ze("
|
||||
syn match logtalkKeyword "\<number_chars\ze("
|
||||
syn match logtalkKeyword "\<number_codes\ze("
|
||||
|
||||
|
||||
" Implementation defined hooks functions
|
||||
|
||||
syn keyword logtalkKeyword set_prolog_flag
|
||||
syn keyword logtalkKeyword current_prolog_flag
|
||||
syn keyword logtalkKeyword halt
|
||||
syn match logtalkKeyword "\<set_prolog_flag\ze("
|
||||
syn match logtalkKeyword "\<current_prolog_flag\ze("
|
||||
syn match logtalkKeyword "\<halt\ze("
|
||||
syn match logtalkKeyword "\<halt\>"
|
||||
|
||||
|
||||
" Evaluable functors
|
||||
@ -304,28 +308,30 @@ syn match logtalkOperator "-"
|
||||
syn match logtalkOperator "\*"
|
||||
syn match logtalkOperator "//"
|
||||
syn match logtalkOperator "/"
|
||||
syn keyword logtalkKeyword rem
|
||||
syn keyword logtalkKeyword mod
|
||||
syn keyword logtalkKeyword abs
|
||||
syn keyword logtalkKeyword sign
|
||||
syn keyword logtalkKeyword float_integer_part
|
||||
syn keyword logtalkKeyword float_fractional_part
|
||||
syn keyword logtalkKeyword float
|
||||
syn keyword logtalkKeyword floor
|
||||
syn keyword logtalkKeyword truncate
|
||||
syn keyword logtalkKeyword round
|
||||
syn keyword logtalkKeyword ceiling
|
||||
syn match logtalkKeyword "\<rem(?=[(])"
|
||||
syn match logtalkKeyword "\<rem\>"
|
||||
syn match logtalkKeyword "\<mod\ze("
|
||||
syn match logtalkKeyword "\<mod\>"
|
||||
syn match logtalkKeyword "\<abs\ze("
|
||||
syn match logtalkKeyword "\<sign\ze("
|
||||
syn match logtalkKeyword "\<float_integer_part\ze("
|
||||
syn match logtalkKeyword "\<float_fractional_part\ze("
|
||||
syn match logtalkKeyword "\<float\ze("
|
||||
syn match logtalkKeyword "\<floor\ze("
|
||||
syn match logtalkKeyword "\<truncate\ze("
|
||||
syn match logtalkKeyword "\<round\ze("
|
||||
syn match logtalkKeyword "\<ceiling\ze("
|
||||
|
||||
|
||||
" Other arithemtic functors
|
||||
|
||||
syn match logtalkOperator "\*\*"
|
||||
syn keyword logtalkKeyword sin
|
||||
syn keyword logtalkKeyword cos
|
||||
syn keyword logtalkKeyword atan
|
||||
syn keyword logtalkKeyword exp
|
||||
syn keyword logtalkKeyword log
|
||||
syn keyword logtalkKeyword sqrt
|
||||
syn match logtalkKeyword "\<sin\ze("
|
||||
syn match logtalkKeyword "\<cos\ze("
|
||||
syn match logtalkKeyword "\<atan\ze("
|
||||
syn match logtalkKeyword "\<exp\ze("
|
||||
syn match logtalkKeyword "\<log\ze("
|
||||
syn match logtalkKeyword "\<sqrt\ze("
|
||||
|
||||
|
||||
" Bitwise functors
|
||||
@ -353,6 +359,17 @@ syn region logtalkBlockComment start="/\*" end="\*/"
|
||||
syn match logtalkLineComment "%.*"
|
||||
|
||||
|
||||
" Logtalk numbers
|
||||
|
||||
syn match logtalkNumber "\<[0-9]\+\>"
|
||||
syn match logtalkNumber "\<[0-9]\+\.[0-9]\+\>"
|
||||
syn match logtalkNumber "\<[0-9]\+\.[0-9]\+[eE][-+][0-9]+\>"
|
||||
syn match logtalkNumber "\<0'[0-9a-zA-Z]\>"
|
||||
syn match logtalkNumber "\<0b[0-1]\+\>"
|
||||
syn match logtalkNumber "\<0o[0-7]\+\>"
|
||||
syn match logtalkNumber "\<0x[0-9a-fA-F]\+\>"
|
||||
|
||||
|
||||
syn sync ccomment maxlines=50
|
||||
|
||||
|
||||
@ -368,36 +385,38 @@ if version >= 508 || !exists("did_logtalk_syn_inits")
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink logtalkBlockComment Comment
|
||||
HiLink logtalkLineComment Comment
|
||||
HiLink logtalkBlockComment Comment
|
||||
HiLink logtalkLineComment Comment
|
||||
|
||||
HiLink logtalkOpenEntityDir Normal
|
||||
HiLink logtalkOpenEntityDirTag Statement
|
||||
HiLink logtalkOpenEntityDirTag PreProc
|
||||
|
||||
HiLink logtalkEntity Normal
|
||||
HiLink logtalkEntity Normal
|
||||
|
||||
HiLink logtalkEntityRel Normal
|
||||
HiLink logtalkEntityRelTag Statement
|
||||
HiLink logtalkEntityRel Normal
|
||||
HiLink logtalkEntityRelTag PreProc
|
||||
|
||||
HiLink logtalkCloseEntityDir Statement
|
||||
HiLink logtalkCloseEntityDir PreProc
|
||||
|
||||
HiLink logtalkDir Normal
|
||||
HiLink logtalkDirTag Statement
|
||||
HiLink logtalkDir Normal
|
||||
HiLink logtalkDirTag PreProc
|
||||
|
||||
HiLink logtalkAtom String
|
||||
HiLink logtalkString String
|
||||
HiLink logtalkAtom String
|
||||
HiLink logtalkString String
|
||||
|
||||
HiLink logtalkNumber Normal
|
||||
HiLink logtalkNumber Number
|
||||
|
||||
HiLink logtalkKeyword Keyword
|
||||
HiLink logtalkKeyword Keyword
|
||||
|
||||
HiLink logtalkBuiltIn Keyword
|
||||
HiLink logtalkBuiltIn Keyword
|
||||
HiLink logtalkBuiltInMethod Keyword
|
||||
|
||||
HiLink logtalkOperator Operator
|
||||
HiLink logtalkOperator Operator
|
||||
|
||||
HiLink logtalkExtCall Normal
|
||||
HiLink logtalkExtCallTag Operator
|
||||
HiLink logtalkExtCall Normal
|
||||
HiLink logtalkExtCallTag Operator
|
||||
|
||||
HiLink logtalkVariable Identifier
|
||||
|
||||
delcommand HiLink
|
||||
|
||||
@ -406,4 +425,4 @@ endif
|
||||
|
||||
let b:current_syntax = "logtalk"
|
||||
|
||||
set ts=4
|
||||
setlocal ts=4
|
||||
|
8
Logtalk/wenv/xcode/Logtalk Application/NOTES
Normal file
8
Logtalk/wenv/xcode/Logtalk Application/NOTES
Normal file
@ -0,0 +1,8 @@
|
||||
=================================================================
|
||||
ÇPROJECTNAMEÈ
|
||||
Release 1.0
|
||||
|
||||
Copyright (c) ÇYEARÈ ÇORGANIZATIONNAMEÈ. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
Description of ÇPROJECTNAMEÈ Logtalk application
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user