crolog
Version, currently master branch1 version
- master branchlatestApr 5, 2017
github.com/bcardiff/crolog
Crystal meets Prolog
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crolog:
github: bcardiff/crolog
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Brian J. Cardiff
Dependencies
This version declares no dependencies.
README
crolog
Crystal meets Prolog
Experiment on how swi-prolog can be embedded in crystal.
Ideas/features:
- Load existing prolog files
- Define facts or rules from crystal
- Consume prolog queries in a crystal friendly way (i.e. yield)
Current limitations
- Goals must be single predicate with variables or atoms. (crystal vars/symbols respectively).
- Rules not defines new vars.
Installation
Install swi-prolog
brew install swi-prolog
Ensure pkg-config --libs swipl works. You might need to
export PKG_CONFIG_PATH=/usr/local/Cellar/swi-prolog/7.2.0/libexec/lib/pkgconfig
Add this to your application's shard.yml:
dependencies:
crolog:
github: bcardiff/crolog
Usage
require "crolog"
Check Samples
Development
TODO: Write instructions for development
Contributing
- Fork it ( https://github.com/bcardiff/crolog/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- bcardiff Brian J. Cardiff - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Apr 5, 2017
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/bcardiff/crolog
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1