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
Mark Thom
0c66743db5
correct module bugs
2018-03-04 21:35:30 -07:00
Mark Thom
8a63623516
add provisional module support.
2018-03-02 22:28:12 -07:00
Mark Thom
5de03444eb
fix bugs in call_with_inference_limit
2018-02-21 19:46:15 -07:00
Mark Thom
f1ac75f21d
add (\=)/2.
2018-02-14 23:21:56 -07:00
Mark Thom
1bf9c0d205
defer cut actions to cut policy trait objects.
2018-02-06 23:41:31 -07:00
Mark Thom
2628e27595
add batch processing.
2018-01-30 00:59:42 -07:00
Mark Thom
9ce6403244
prepare for batch processing
2018-01-29 22:07:56 -07:00
Mark Thom
73714e8aa2
prepare for batch processing.
2018-01-29 22:04:51 -07:00
Mark Thom
41dc8e8d6a
inline and expand conditionals whenever possible
2018-01-23 21:01:53 -07:00
Mark Thom
d8be7b5b49
add an atom table.
2018-01-16 23:26:59 -07:00
Mark Thom
38cd9e5db7
expand remaining tests.
2018-01-16 19:53:49 -07:00
Mark Thom
f59763da67
start adding output checks to test
2018-01-15 23:42:09 -07:00
Mark Thom
b2b4ce6877
print ops properly.
2018-01-14 20:46:03 -07:00