Skgland
8e5954f36f
remove use statements from main.rs that temporary replaced extern crate and fixed paths that previously used them
2021-02-06 22:13:04 +01:00
Skgland
b53ef148a0
remove extern crate declaration and fix outfall (macros now need to be imported into scope)
...
using use declarations in main.rs so that use paths don't need to be updated as well, this will be done in a later commit
2021-02-06 22:12:31 +01:00
Mark Thom
a239007db0
target prolog_parser_rebis on crates.io
2021-01-30 22:03:07 -07:00
Mark Thom
a4d15bfb88
move to a predicate-based module system, move to loader.[rs|pl]-based compilation, add support for incremental clause compilation
2021-01-30 21:07:51 -07:00
Marco A L Barbosa
8d405849be
Update num-rug-adapter to fix build with num feature.
2020-10-18 19:20:45 -03:00
Mark Thom
33325f1574
remove vestigial prolog/ directory ( #444 )
2020-06-12 18:26:38 -06:00
Mark Thom
b5368207d6
merge with master
2020-05-03 18:49:15 -06:00
Mark Thom
9dabce819a
remove now unnecessary dependencies, correct ordering of ! in (;)/3
2020-05-01 23:38:44 -03:00
notoria
98d38d763b
Added $scryer_prolog_version/1
2020-05-02 02:19:22 +02:00
Mark Thom
6a583b9b5b
Revert "Enhanced command line"
2020-05-01 15:43:20 -06:00
notoria
6ae7ae0210
Enhanced version
2020-05-01 16:46:31 +02:00
Mark Thom
2c8858ff2d
use correct signs in fixnum remainders
2020-04-18 17:37:54 -06:00
Stephan Renatus
9e907e36e2
main: fix version reporting without git
...
Fixes #339 .
At least I hope so. I didn't come up with an idea how to test this with
little effort.
Signed-off-by: Stephan Renatus <srenatus@chef.io >
2020-04-13 15:50:33 +02:00
Stephan Renatus
45d4f46024
main: skip args[0]
...
This is a bit pedantic, it's unlikely that the executable would be
called `-v` or `--version`. However, it seems slightly more correct to
disregard argv[0] when checking flags.
Signed-off-by: Stephan Renatus <srenatus@chef.io >
2020-03-28 09:07:44 +01:00
Stephan Renatus
896f2aeb74
main: add -v/--version flag
...
Added a new dependency to take care of pulling in the version from git
at build time.
Args handling is minimalistic, but there wasn't any before, so I figured
this might do for now. (Eventually, some proper `--help` and usage
output might come in handy?)
Signed-off-by: Stephan Renatus <srenatus@chef.io >
2020-03-27 19:59:50 +01:00
Mark Thom
4c88e97330
add current_output, printing of stream terms
2020-03-11 00:38:01 -06:00
Mark Thom
22bb3fe876
replace termion with crossterm
2020-03-08 18:01:54 -06:00
Mark Thom
17f9695ab2
remove tests.rs module from main.rs
2019-11-19 10:13:59 -04:00
Yu Ding
adb469f627
Upgrade to edition. Bump up edition in Cargo.toml
2019-10-14 00:23:32 -07:00
Mark Thom
b26c5c213e
return to toplevel from a long running query after receiving Ctrl-C
2019-09-30 13:27:22 -06:00
Mark Thom
9df14cf890
add use_module/{1,2} as full fledged predicates
2019-09-30 10:26:29 -06:00
Mark Thom
2c1c1b7d12
migrate to rustyline, add history support
2019-09-26 11:25:05 -06:00
Atul Bhosale
1273e2d52d
Format code using 'cargo fmt'
2019-09-23 19:35:37 +07:00
Mark Thom
2c880b2bc0
address issues #143 , #150 , #155
2019-09-02 16:53:31 -04:00
Mark Thom
3547ae2db4
quote solo characters wherever they lead atoms
2019-05-05 22:48:19 -04:00
Mark Thom
ae90554378
read from streams.
2019-04-13 18:40:17 -06:00
Mark Thom
32c8a5e55f
index inlined and builtin clausetypes inside a BTreeMap
2019-03-26 21:59:50 -06:00
Mark Thom
33b581effc
enable an option to disable readline
2019-03-21 19:46:42 -06:00
Mark Thom
fd703c3610
make toplevel more consistent with answers, depend on readline package without renaming.
2019-03-17 17:49:51 -06:00
Mark Thom
840b98dcf3
update readline.rs version
2019-03-17 15:22:31 -06:00
Mark Thom
4a7cd50e4b
use new readline crate
2019-03-17 14:50:57 -06:00
Mark Thom
2fad1c724c
use the readline library at toplevel
2019-03-16 19:12:06 -06:00
Mark Thom
3d8c0a43a6
refactor to actual modules
2019-03-03 23:29:02 -07:00
Mark Thom
046569b6a9
flatten CompiledQuery and CompiledFact in Code, remove CompiledQuery
2019-02-06 22:25:41 -07:00
Mark Thom
c5fbff505b
expand goals in queries and queues
2019-02-01 23:36:51 -07:00
Mark Thom
908972eff1
incorporate term_expansion phase in compilation
2018-09-18 22:44:03 -06:00
Mark Thom
fbf16e2aea
provisional changes to module insertion
2018-09-12 20:46:15 -06:00
Mark Thom
3f06ff874b
make use of read_term in the repl
2018-09-10 00:18:17 -06:00
Mark Thom
33d1a7c701
add structural tests for partial strings, rename ast.rs
2018-09-04 21:20:45 -06:00
Mark Thom
ff9d2662e6
farm parser out to a crate, remove it as a git submodule.
2018-09-03 21:58:07 -06:00
Mark Thom
073a8888f3
include builtins implicitly in every module.
2018-07-04 23:25:55 -06:00
Mark Thom
06d896277c
major refactor
2018-05-15 22:47:36 -06:00
Mark Thom
7455c2e9db
add support for callable if-then and disjunct
2018-05-12 00:30:34 -06:00
Mark Thom
ba7e7ac895
throw exception when call-ing a system instruction.
2018-05-10 23:08:56 -06:00
Mark Thom
954c29b103
add catch/throw support, make exceptions and arithmetic tests pass.
2018-05-10 01:43:36 -06:00
Mark Thom
b09c20670b
shift to builtins
2018-05-08 22:38:49 -06:00
Mark Thom
ff6e58e987
update/extension to lexer, bug fixes to module importing
2018-04-13 18:44:23 -06:00
Mark Thom
7500465b38
add atom predicate.
2018-03-10 15:26:35 -07:00
Mark Thom
179e425fb6
add queues, fix debray allocator bug.
2018-03-08 00:29:56 -07:00
Mark Thom
ab182b6e3b
add error messages on failed batch entry
2018-03-07 17:19:28 -07:00