bakaq
8736526b35
Fix lists of chars as strings
2024-08-16 00:34:46 -03:00
bakaq
7afc08af47
Represent atom [] as empty list
2024-08-16 00:01:25 -03:00
bakaq
12aaae5fc0
Differentiate anonymous variables
2024-08-15 20:08:29 -03:00
bakaq
82a7d7efbd
Value::from_heapcell() implemented with heap walk
2024-08-14 23:44:52 -03:00
bakaq
37a906cf37
Value::from_heapcell()
2024-08-14 23:44:52 -03:00
bakaq
bc262db6d7
Implement run_query() in terms of run_query_iter()
2024-08-14 19:59:42 -03:00
Bennet Bleßmann
943dce566b
fix clippy
2024-07-06 18:26:34 +02:00
Bennet Bleßmann
6386e70584
clippy: change ToString impl to Display
...
- write directly to formatter, eliminating intermediate String allocations
- take Value by reference eliminating clones
- remove trim() called on the result of QueryResolution::to_string
- we only emit "true", "false", or "[<resolutions>]"
neither of which contains trailing or leading withespace,
so the calls was effectively a noop
2024-07-06 13:32:58 +02:00
Mark Thom
b43f0979d9
Update src/machine/parsed_results.rs
...
Co-authored-by: Bennet Bleßmann <bennet.blessmann+github@googlemail.com >
2024-02-08 19:10:29 -07:00
Nicolas Luck
6586657658
fmt
2024-02-01 13:53:21 +01:00
Nicolas Luck
a0e598b97e
clippy
2024-02-01 13:51:37 +01:00
Nicolas Luck
7bb9c00356
fmt
2024-01-29 18:44:20 +01:00
Nicolas Luck
cb014095ad
Add expected results to integration test
...
Results are logs of what we get with old toplevel-based version of lib_machine. These are also congruent with what our tests logged out based on SWI.
2024-01-26 17:18:57 +01:00
Nicolas Luck
77ce5a9586
Result with one empty match should be false
2023-12-05 15:00:07 +01:00
infogulch
9444e62df9
Resolve lints and format
2023-11-04 02:16:54 -05:00
Nicolas Luck
fab5ca9440
Fix nested List parsing
2023-10-03 20:19:57 +02:00
Nicolas Luck
77394ba914
Remove debug println!s
2023-08-24 19:15:41 +02:00
Nicolas Luck
c25888288a
Fix parsing of floats
2023-08-24 18:10:47 +02:00
Nicolas Luck
7e97f16f41
Fix list result parsing
2023-08-22 22:46:00 +02:00
Nicolas Luck
48a4835819
Merge branch 'master' into library-use-case
...
# Conflicts:
# Cargo.lock
# Cargo.toml
# src/bin/scryer-prolog.rs
# src/loader.pl
# src/machine/mock_wam.rs
# src/machine/mod.rs
# src/machine/system_calls.rs
2023-08-03 20:16:32 +02:00
Nicolas Luck
0d28404aad
Add special case when parsing
2023-07-27 11:50:38 +02:00
Nicolas Luck
9e85be11fe
Fix result parsing for complex string results
2023-07-21 14:35:44 +02:00
Nicolas Luck
7c93450aa7
type QueryResult = Result<QueryResolution, String>
2023-07-20 22:31:20 +02:00
Nicolas Luck
836f6c1d5b
Don't panic when parsing results fails
2023-07-20 21:34:43 +02:00
Nicolas Luck
e7f1e32ee3
fmt machine/parsed_results.rs
2023-07-17 21:35:00 +02:00
Nicolas Luck
c0dd94c8a3
Add test for programatic queries
2023-07-12 11:57:53 +02:00
Nicolas Luck
f65675836c
Fix build warnings
2023-07-12 11:38:53 +02:00
Nicolas Luck
f324c9591d
Refactor result parsing to idiomatic Rust and extract into parsed_results.rs
2023-07-12 10:34:07 +02:00