Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "gvar_syntax"

Title:Global Variable Syntax
Rating:Not rated. Create the first rating!
Latest version:2.0.3
SHA1 sum:6fa2f441286fa38f69d13d9dbf1c440dc9a72e7f
Author:Douglas R. Miles <logicmoo@gmail.com>
Maintainer:TeamSPoon https://github.com/TeamSPoon/
Packager:TeamSPoon/LogicMoo https://github.com/TeamSPoon/
Home page:https://github.com/TeamSPoon/gvar_syntax
Download URL:https://github.com/TeamSPoon/gvar_syntax/releases/*.zip

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
2.0.36fa2f441286fa38f69d13d9dbf1c440dc9a72e7f73https://github.com/TeamSPoon/gvar_syntax.git
2.0.107738f6631863a4270a41f875f5574c72a8a005b24https://github.com/TeamSPoon/gvar_syntax.git
1.5.6663651f9b378e7cd3f1fb03861d3f0e0d7da60c3d91https://github.com/TeamSPoon/gvar_syntax.git
1.4.1117440f976a4e1076abf2a78ef4fe3a395a8081b651https://github.com/TeamSPoon/gvar_syntax.git
1.3.111f5edd0b833131db7e060a5a1276ed835c3a0df416https://github.com/TeamSPoon/gvar_syntax.git
1.2.1116a76d001145071ef8fccaff70a7f79ff406c1feb4https://github.com/TeamSPoon/gvar_syntax.git
fefb520761650eebfdce5e95a35b4006225cdc028https://github.com/TeamSPoon/gvar_syntax.git
1.1.118d3bf29963a1b248b990172f70fa572dd7eca4d281https://github.com/TeamSPoon/gvar_syntax.git
d531679d7d009ba83e4314973cb08f147c082fb81https://github.com/TeamSPoon/gvar_syntax.git
7f3438c13676663c3a1a7e9f377df1b2c791103f1https://github.com/TeamSPoon/gvar_syntax.git
1.1.1171246b61b962c57062b982f4179a5542956a522a91https://github.com/TeamSPoon/gvar_syntax.git
1.1.11570ab36f653de5dbd65330e9debc8f196cc8b72f41https://github.com/TeamSPoon/gvar_syntax.git
1.1.112e01f61d20c54fac4f77b8d53e6df754256fc245f1https://github.com/TeamSPoon/gvar_syntax.git
1.1.111fed01446ab94b87fd4780124fbd4edf201e7d9181https://github.com/TeamSPoon/gvar_syntax.git
0.0.78725ebef040c4221fab91eea9e0b72db442157aa1https://github.com/TeamSPoon/gvar_syntax.git
0.0.5cb51296f05aebe987fb3876cb4f7dce058e626bb1https://github.com/TeamSPoon/gvar_syntax.git
0.0.39cce1d7394cabf4eac19ae1947d1b926144553861https://github.com/logicmoo/gvar_syntax.git
0.0.2be927d598a0ec34b17e1beccf513e45d51c6f4891https://github.com/logicmoo/gvar_syntax.git
0.0.19f0f88c2ddb96d337beb22917084936ba0356d4e1https://github.com/logicmoo/gvar_syntax.git

SWI-Prolog Pack that adds a new Global Variable syntax to Prolog

Installation

Using SWI-Prolog 7.1 or later:

?- pack_install(gvar_syntax).

This module uses semantic versioning.

Source code available and pull requests accepted at http://github.com/logicmoo/gvar_syntax

?- use_module(library(gvar_syntax)).
true.

?- $foo.value = 1.
true.

?- $foo.value = 2.
false.

?- writeln($foo.value).
1
true.

?- writeln($foo.get()).
1
true.

?- $foo.clear().
true.

?- writeln($foo.value).
_8350

?- writeln($bar.set(2).value).
2

?- $foo.value = xxxxxxxx.
true.

?- $baz.set(point{ x: ($foo.get()) , y:vy, z:vz}).
true.

?- writeln($baz.value.x).
xxxxxxxx
true.

?- writeln($baz.x). % will error as you havented acceed the value

Another Pack called dictoo adds better OO API on these values

BSD 2-Clause License

Copyright (c) 2017, Douglas Miles <logicmoo@gmail.com> All rights reserved.

Contents of pack "gvar_syntax"

Pack contains 5 files holding a total of 6.4K bytes.