Mark Thom
8ce377d033
update toplevel comments, add mutable stack to zipped acyclic iterators
2020-04-19 16:01:35 -06:00
Mark Thom
5d6ca7a88e
throw '' whenever an interrupt is made ( #365 , #366 )
2020-04-19 12:58:44 -06:00
Markus Triska
075ca78dd2
ENHANCED: Delay toplevel output until after the goal succeeds.
...
This is to accommodate goals that are used for their side-effects,
when we are interested in their output.
Examples:
?- portray_clause((a :- a)).
a :-
a.
true
; false.
?- format("hello~w~n", [!]).
hello!
true
; false.
2020-04-19 01:34:03 +02:00
Mark Thom
9daf290432
remove SCCCutPolicy panic, revise (;)/2 so that comma'ed cuts are handled properly ( #361 )
2020-04-18 20:10:53 -06:00
Mark Thom
3438f88c1e
drop $ naming convention inside '' when unnecessary
2020-04-18 20:06:52 -06:00
Markus Triska
1713f1222b
reintroduce "n" as a synonym for ";" and " "
2020-04-18 14:16:46 -06:00
Markus Triska
450591d5a9
ENHANCED: the toplevel interaction now supports RETURN as a synonym for "."
...
This is made possible due to the recent improvements by @notoria.
2020-04-18 14:16:46 -06:00
Markus Triska
5c4863dfb1
small simplifications
2020-04-18 14:16:46 -06:00
notoria
cc8f074d33
Added Space for continuation
2020-04-18 14:16:46 -06:00
Markus Triska
2d77ef4245
use get_single_char/1
2020-04-18 14:16:46 -06:00
notoria
3f578e24b5
Removed $raw_input_read_char
2020-04-18 14:16:46 -06:00
Mark Thom
f96e694ff8
bracket graphic token chars in toplevel.pl ( #357 )
2020-04-18 14:16:40 -06:00
Mark Thom
3f971174e4
quote single dots only
2020-04-18 14:16:40 -06:00
Mark Thom
474fa9b3ec
remove underscores in printed variables produced by write_term_to_chars ( #340 )
2020-04-18 14:16:40 -06:00
Mark Thom
af14832b6c
quote dot when quoted(true) ( #349 )
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
d76ae413c4
use fixnums in place of bignums where possible
2020-04-05 20:32:16 -06:00
Mark Thom
141f3bcec3
harmonize partial strings with complete strings ( #276 ), make Addr a copyable type
2020-04-03 10:22:46 -06:00
Mark Thom
cac76d4739
Merge branch 'master' into develop
2020-03-26 22:01:25 -06:00
Mark Thom
194e5dc94e
initial commit for merge
2020-03-26 22:01:23 -06:00
Mark Thom
487fe21e25
#278
2020-03-19 17:49:17 -06:00
Markus Triska
17a448e045
support 'h' to print help message during toplevel interaction
2020-03-15 13:42:51 +01:00
Markus Triska
7ff11dce35
support 'p' to reprint answer with max depth, allowing w -> p -> w ...
2020-03-15 13:26:49 +01:00
Mark Thom
bef96e231d
use max_depth at toplevel, allowing full printing of terms with the 'w' keypress ( #287 ), put disjunctions on new lines ( #278 )
2020-03-15 00:35:59 -06:00
Mark Thom
325df8a6e3
add provisional max_depth option to write_term, speed printing of non-cyclic terms
2020-03-15 00:09:20 -06:00
Mark Thom
31258247b3
Give new answer variables readable names ( #279 )
2020-03-14 03:04:11 -06:00
Mark Thom
eee10d3ee7
fix broken conformity tests, quote left paren
2020-03-08 16:49:47 -06:00
Mark Thom
545472f9c4
correct misreported error in toplevel loop ( #272 )
2020-02-21 21:09:59 -07:00
Mark Thom
b71e8082d2
prolog_parser version bump
2020-02-04 23:35:03 -07:00
Mark Thom
740bd528c4
add multifile and module scoped predicates
2020-02-02 22:13:14 -07:00
Mark Thom
02d8b1441d
expand goals inside (\+)/1
2019-12-11 21:42:15 -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
5ccd334555
resolve panic caused by lingering attribute goals ( #253 )
2019-12-06 15:22:28 -04:00
Mark Thom
90e1c990e5
print equations between variables ( #228 , #252 )
2019-12-06 10:30:16 -04:00
Mark Thom
e48f87fcf0
clear ball before setting it ( #246 )
2019-12-01 03:04:01 -07:00
Mark Thom
0eb20a5d8e
pop AND frames when safe to do so, suspend resizing of AND frames until a proper GC is implemented ( #244 )
2019-11-30 14:08:02 -07:00
Mark Thom
3e49db1a29
backtrack attributed variable bindings after failure ( #242 )
2019-11-29 13:47:22 -04:00
Mark Thom
335202b9d9
reset attributed variable state between toplevel queries ( #242 )
2019-11-28 19:08:08 -07:00
Mark Thom
c3c53017f9
add ambiguity check for period printing, remove extraneous space between last goal and period ( #237 )
2019-11-26 19:38:43 -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
24ffdc2724
correct bug, dead code in toplevel.pl
2019-11-22 20:38:03 -07:00
Mark Thom
6899f051ac
Merge branch 'master' of https://github.com/mthom/rusty-wam
2019-11-21 18:05:09 -07:00
Mark Thom
b31b23e41c
add conditional bracketing to equations printed by toplevel
2019-11-21 16:26:00 -04:00
Mark Thom
1139b3b4c1
small test updates
2019-11-20 23:50:51 -07:00
Mark Thom
bcfd7cbf8d
begin migrating tests to pure prolog, correct bug in toplevel
2019-11-16 19:15:07 -07: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
ed985c3cfe
move more of the toplevel from rust into prolog
2019-11-16 00:26:15 -07:00