Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guregu/predicates
various predicates for ichiban/prolog
https://github.com/guregu/predicates
dynamodb go prolog
Last synced: 3 months ago
JSON representation
various predicates for ichiban/prolog
- Host: GitHub
- URL: https://github.com/guregu/predicates
- Owner: guregu
- License: other
- Created: 2022-03-14T19:12:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-25T08:40:57.000Z (over 2 years ago)
- Last Synced: 2024-09-28T00:05:45.314Z (4 months ago)
- Topics: dynamodb, go, prolog
- Language: Go
- Homepage:
- Size: 95.7 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - guregu/predicates - various predicates for ichiban/prolog (Go)
README
# predicates [![GoDoc](https://godoc.org/github.com/guregu/predicates?status.svg)](https://godoc.org/github.com/guregu/predicates)
`import "github.com/guregu/predicates"`Native predicates for [ichiban/prolog](https://github.com/ichiban/prolog).
## Prolog
Filesystem predicates use [`io/fs.FS`](https://pkg.go.dev/io/fs).
### Built-in replacements
- `consult/1`
### `library(files)`
These predicates are intended to be compatible with Scryer Prolog's [`library(files)`](https://github.com/mthom/scryer-prolog/blob/master/src/lib/files.pl).
These use strings (lists of characters) for filenames.- `directory_files/2`
- `directory_exists/1`
- `file_exists/1`### Lists
- `is_list/1`
- `atomic_list_concat/3`### Atoms
- `downcase_atom/2`
- `upcase_atom/2`### Package [`taujson`](https://godoc.org/github.com/guregu/predicates/taujson)
These predicates are intended to be compatible with Tau Prolog's [`library(js)`](http://tau-prolog.org/documentation#js).
They are peculiar predicates that use opaque native objects for JSON conversion.- `json_atom/2`
- `json_prolog/2`### Graduated
- [`between/3`](https://github.com/ichiban/prolog/releases/tag/v0.9.0) made it into ichiban/prolog in `v0.9.0`!
## Go
Package [`chars`](https://godoc.org/github.com/guregu/predicates/chars) provides some convenience functions for working with Prolog strings.
## License
BSD 2-clause. Includes code from ichiban/prolog (MIT license).
See LICENSE.