Mark Thom
e2a3db1b82
use copy_term/3 as source of attribute goals
2020-05-03 19:34:18 -06:00
Mark Thom
848425418b
Project goals of query variables ( #362 )
2020-05-02 22:27:32 -06:00
notoria
c98e869564
Implemented the Debug trait for all data structures
2020-04-26 02:20:24 +02:00
Mark Thom
b64d45a74e
speed comparisons of partial strings
2020-04-19 20:58:53 -06:00
Mark Thom
37f1f8ac14
allow characters as atoms in Machine::use_module and Machine::use_qualified_module
2020-04-18 14:16:40 -06:00
Mark Thom
38bb44664c
interrupt running queries and return to toplevel ( #323 )
2020-04-18 14:16:40 -06:00
Mark Thom
7799ed36f0
provide better variable names in write_term_to_chars/3 ( #340 )
2020-04-14 10:39:10 -06:00
Mark Thom
378e9b5539
Merge pull request #327 from srenatus/sr/pass-argv-as-partial-strings
...
use partial strings for passing argv to toplevel.pl
2020-04-13 11:17:08 -03:00
Stephan Renatus
155645307a
use partial strings for passing argv to toplevel.pl
...
In run_top_level: rename variables, make them partial strings
The rename is mostly cosmetic: all of argv is passed, and if argv
contains flags, goals, etc, it's more than filenames.
Using partial strings instead of atom came from discussions about how to
pass goals in the CLI, and can thus be considered preliminary work for
that.
In toplevel.pl: convert partial string to atom before passing it to
`use_module`.
Signed-off-by: Stephan Renatus <srenatus@chef.io >
2020-04-13 10:10:10 +02:00
Mark Thom
28099b9812
correct misleading error for modules ( #300 )
2020-04-12 12:51:59 -06:00
Mark Thom
6e4b76a3b4
compile special instructions for partial strings when recognized
2020-04-11 21:53:28 -06:00
Mark Thom
d76ae413c4
use fixnums in place of bignums where possible
2020-04-05 20:32:16 -06:00
Mark Thom
194e5dc94e
initial commit for merge
2020-03-26 22:01:23 -06:00
Mark Thom
42a90b2d40
don't emit overwriting warnings for term_expansion/2 or goal_expansion/2
2020-03-14 14:18:01 -06:00
Mark Thom
4c88e97330
add current_output, printing of stream terms
2020-03-11 00:38:01 -06:00
Mark Thom
25babff827
add streams.rs, consume them in place of the old PrologStream
2020-03-09 11:56:16 -06:00
Mark Thom
eee10d3ee7
fix broken conformity tests, quote left paren
2020-03-08 16:49:47 -06:00
Mark Thom
c7591045af
represent the current_dir as an absolute path, not a relative one. ( #262 )
2020-03-07 16:00:10 -07:00
Mark Thom
2ebcd673c8
add s pointers for strings and partial strings, put_unsafe_value calls store earlier to avoid unnecessary heap writes ( #273 )
2020-02-28 23:42:40 -07:00
Mark Thom
b2e50b42a3
rename non_iso.pl to iso_ext.pl ( #265 )
2020-02-22 00:58:37 -07:00
Mark Thom
0457b38e41
add redone partial strings ( #24 , #95 )
2020-02-19 21:34:09 -07:00
Mark Thom
8902bcb5ab
use raw_block.rs for the heap backend
2020-02-16 16:30:36 -07:00
Mark Thom
5f51e264f2
change raw_vec to raw_block to avoid clashes with liballoc package
2020-02-13 20:05:46 -07:00
Mark Thom
5a6333129b
move bump allocation logic to its own module
2020-02-12 23:34:05 -07:00
Mark Thom
969bd8f82c
remove partial strings, but represent strings as lists when warranted by double_quotes
2020-02-12 22:12:42 -07:00
Mark Thom
740bd528c4
add multifile and module scoped predicates
2020-02-02 22:13:14 -07:00
Mark Thom
9a80d398e8
add listing sources to modules
2020-01-13 20:17:22 -07:00
Mark Thom
196784bd09
change goal and term expansions, change call/N to use goal expansions
2019-12-10 21:36:02 -07:00
Mark Thom
2be7070e1a
revert arithmetic code
2019-12-08 00:17:55 -07:00
Mark Thom
f998d6a99f
merge latest commit
2019-11-28 21:22:59 -04:00
Mark Thom
5723edd765
unsafe stack transition
2019-11-28 21:22:03 -04:00
Mark Thom
1dec482e22
use in situ code directory from metacall if conventional lookup fails ( #238 )
2019-11-27 00:52:30 -07:00
Mark Thom
834c57466f
add operator exports to module declarations, treat them separately from predicate exports ( #230 )"
2019-11-25 23:09:49 -07:00
Mark Thom
6f9477f0bb
rollback changes in snapshot handling
2019-11-17 21:07:16 -04:00
Mark Thom
cee3dbc453
quote values and goals in equations, eliminate dead code, correct retract/1
2019-11-16 17:15:25 -07:00
Mark Thom
c219d9ad5f
Merge branch 'master' of https://github.com/mthom/scryer-prolog
2019-11-16 19:53:29 -04:00
Mark Thom
15927d7054
transition to unsafe and/or stack
2019-11-16 19:51:53 -04:00
Mark Thom
ed985c3cfe
move more of the toplevel from rust into prolog
2019-11-16 00:26:15 -07:00
Mark Thom
4ad62e4606
add warnings when initialization goals fail ( #168 )
2019-10-30 00:25:17 -06:00
Mark Thom
b90d69a45b
install asserted predicates into modules from initialization directives ( #222 )
2019-10-29 00:06:51 -06:00
Mark Thom
81f220a4d2
replace \n\r and \r\n by \n ( #221 )
2019-10-27 20:50:21 -06:00
Mark Thom
e594ade84d
finish #214 , add needed ambiguity checks if 0 is the final character
2019-10-27 19:23:35 -06:00
Mark Thom
ccfcc654a5
remove module from toplevel in unqualified use_module
2019-10-26 12:39:42 -06:00
Mark Thom
a358431d30
reload files properly (re: #213 )
2019-10-26 01:34:41 -06:00
Mark Thom
1b1879a6fa
fix attributed variables bug causing weighted_maximum/3 example to omit a variable binding
2019-10-20 14:50:46 -06:00
Mark Thom
24e5e39c28
add order preserving tidy_trail, fix random_labeling/2
2019-10-19 00:29:50 -06:00
Mark Thom
c4269b87c2
re: issues #200 , #201
2019-10-15 00:42:55 -06:00
Yu Ding
adb469f627
Upgrade to edition. Bump up edition in Cargo.toml
2019-10-14 00:23:32 -07:00
Mark Thom
7f297eb064
Merge pull request #191 from dingelish/master
...
Fix some old Rust codes
2019-10-14 00:59:03 -03:00
Mark Thom
da89b1af63
handle TCO when setting up verify_attributes interrupts
2019-10-13 14:13:52 -06:00