https://github.com/guregu/predicates
various predicates for ichiban/prolog
https://github.com/guregu/predicates
dynamodb go prolog
Last synced: 17 days 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-25T08:40:57.000Z (over 2 years ago)
- Last Synced: 2025-03-26T09:45:04.218Z (about 1 month ago)
- Topics: dynamodb, go, prolog
- Language: Go
- Homepage:
- Size: 95.7 KB
- Stars: 15
- 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 [](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.