generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #783 from axone-protocol/feat/more-predicates
Feat/more predicates
- Loading branch information
Showing
36 changed files
with
1,043 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# atomic_list_concat/2 | ||
|
||
## Description | ||
|
||
`atomic_list_concat/2` is a predicate that unifies an Atom with the concatenated elements of a List. | ||
|
||
## Signature | ||
|
||
```text | ||
atomic_list_concat(+List, ?Atom) | ||
``` | ||
|
||
where: | ||
|
||
- List is a list of strings, atoms, integers, floating point numbers or non\-integer rationals | ||
- Atom is an Atom representing the concatenation of the elements of List |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# atomic_list_concat/3 | ||
|
||
## Description | ||
|
||
`atomic_list_concat/3` is a predicate that unifies an Atom with the concatenated elements of a List using a given separator. | ||
|
||
The atomic\_list\_concat/3 predicate creates an atom just like atomic\_list\_concat/2, but inserts Separator between each pair of inputs. | ||
|
||
## Signature | ||
|
||
```text | ||
atomic_list_concat(+List, +Separator, ?Atom) | ||
``` | ||
|
||
where: | ||
|
||
- List is a list of strings, atoms, integers, floating point numbers or non\-integer rationals | ||
- Separator is an atom \(possibly empty\) | ||
- Atom is an Atom representing the concatenation of the elements of List |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
sidebar_position: 18 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# json_read/2 | ||
|
||
## Description | ||
|
||
`json_read/2` is a predicate that reads a JSON from a stream and unifies it with a Prolog term. | ||
|
||
See json\_prolog/2 for the canonical representation of the JSON term. | ||
|
||
The signature is as follows: | ||
|
||
```text | ||
json_read(+Stream, ?Term) is det | ||
``` | ||
|
||
Where: | ||
|
||
- Stream is the input stream from which the JSON is read. | ||
- Term is the Prolog term that represents the JSON structure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
sidebar_position: 19 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# json_write/2 | ||
|
||
## Description | ||
|
||
`json_write/2` is a predicate that writes a Prolog term as a JSON to a stream. | ||
|
||
The JSON object is of the same format as produced by json\_read/2. | ||
|
||
The signature is as follows: | ||
|
||
```text | ||
json_write(+Stream, +Term) is det | ||
``` | ||
|
||
Where: | ||
|
||
- Stream is the output stream to which the JSON is written. | ||
- Term is the Prolog term that represents the JSON structure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
sidebar_position: 23 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# read_term/3 | ||
|
||
## Description | ||
|
||
`read_term/3` is a predicate that reads a term from a stream or alias. | ||
|
||
The signature is as follows: | ||
|
||
```text | ||
read_term(+Stream, -Term, +Options) | ||
``` | ||
|
||
where: | ||
|
||
- Stream represents the stream or alias to read the term from. | ||
- Term represents the term to read. | ||
- Options represents the options to control the reading process. | ||
|
||
Valid options are: | ||
|
||
- singletons\(Vars\): Vars is unified with a list of variables that occur only once in the term. | ||
- variables\(Vars\): Vars is unified with a list of variables that occur in the term. | ||
- variable\_names\(Vars\): Vars is unified with a list of Name = Var terms, where Name is an atom and Var is a variable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
sidebar_position: 26 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# term_to_atom/2 | ||
|
||
## Description | ||
|
||
`term_to_atom/2` is a predicate that describes Atom as a term that unifies with Term. | ||
|
||
## Signature | ||
|
||
```text | ||
term_to_atom(?Term, ?Atom) | ||
``` | ||
|
||
where: | ||
|
||
- Term is a term that unifies with Atom. | ||
- Atom is an atom. | ||
|
||
When Atom is instantiated, Atom is parsed and the result unified with Term. If Atom has no valid syntax, a syntax\_error exception is raised. Otherwise, Term is “written” on Atom using write\_term/2 with the option quoted\(true\). | ||
|
||
## Example | ||
|
||
```text | ||
# Convert the atom to a term. | ||
- term_to_atom(foo, foo). | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
sidebar_position: 28 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# write_term/3 | ||
|
||
## Description | ||
|
||
`write_term/3` is a predicate that writes a term to a stream or alias. | ||
|
||
The signature is as follows: | ||
|
||
```text | ||
write_term(+Stream, +Term, +Options) | ||
``` | ||
|
||
where: | ||
|
||
- Stream represents the stream or alias to write the term to. | ||
- Term represents the term to write. | ||
- Options represents the options to control the writing process. | ||
|
||
Valid options are: | ||
|
||
- quoted\(Bool\): If true, atoms and strings that need quotes will be quoted. The default is false. | ||
- ignore\_ops\(Bool\): If true, the generic term representation \(\<functor\>\(\<args\> ... \)\) will be used for all terms. Otherwise \(default\), operators will be used where appropriate. | ||
- numbervars\(Bool\): If true, variables will be numbered. The default is false. | ||
- variable\_names\(\+List\): Assign names to variables in Term. List is a list of Name = Var terms, where Name is an atom and Var is a variable. | ||
- max\_depth\(\+Int\): The maximum depth to which the term is written. The default is infinite. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.