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
notoria
fb5ee5e190
get_single_char reads Tab as \t
2020-04-18 14:16:46 -06:00
notoria
63e8378310
get_single_char reads Enter as \n
2020-04-18 14:16:46 -06:00
notoria
c24ebaf506
Moved get_single_char from builtins.pl to charsio.pl
2020-04-18 14:16:46 -06:00
notoria
d3a1f11dfe
Added predicate for reading a single character
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
d5d635e50f
slight tweaks to bimetatrans
2020-04-18 14:16:40 -06:00
Mark Thom
1ad4ce9822
index Constant::Usize ( #355 )
2020-04-18 14:16:40 -06:00
Mark Thom
3f971174e4
quote single dots only
2020-04-18 14:16:40 -06:00
Markus Triska
16e257ea32
ADDED: list_to_set/2, using the first occurrence of each element
...
Example:
?- list_to_set([B,a,b,a,B,A,b,A], Ls).
Ls = [B,a,b,A]
; false.
2020-04-18 14:16:40 -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
474fa9b3ec
remove underscores in printed variables produced by write_term_to_chars ( #340 )
2020-04-18 14:16:40 -06:00
Mark Thom
6d7b14ceb5
don't count the terminator in PStrIter len
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
9ef185978f
privilege new op declarations over old ones ( #346 )
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
124d924ff5
write [a,b,c] correctly with write_canonical ( #349 )
2020-04-18 14:16:40 -06:00
Markus Triska
e8091d8add
update the toplevel description, incorporating the latest changes
2020-04-18 14:16:40 -06:00
Mark Thom
500bd53b6a
Merge pull request #360 from notoria/master
...
Add get_single_char predicate.
2020-04-18 14:10:26 -03:00
notoria
6996ca832d
Merge pull request #2 from triska/get_single_char
...
New feature: RET can now be used as a synonym for "." in the interaction
2020-04-18 18:51:37 +02:00
notoria
2e15ab44ab
Removed a check in get_single_char
2020-04-18 18:28:26 +02:00
Markus Triska
2ae5472872
reintroduce "n" as a synonym for ";" and " "
2020-04-18 18:09:55 +02:00
Markus Triska
98a32790cd
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 17:56:37 +02:00
Markus Triska
6dcefcfb71
small simplifications
2020-04-18 17:52:43 +02:00
notoria
988366e37f
Added Space for continuation
2020-04-18 16:57:45 +02:00
notoria
98a37905b8
Fixed the predicate name when error is thrown
2020-04-18 15:21:19 +02:00
notoria
bd832d0fbb
Merge pull request #1 from triska/get_single_char
...
use get_single_char/1
2020-04-18 14:50:32 +02:00
Markus Triska
1f7e18f2a9
instead of a type error, use a domain error
...
The preceding use of atom_length/2 already ensures that C has the
correct type (i.e., atom). However, its domain may still be wrong,
if its length is greater than 1.
2020-04-18 14:39:30 +02:00
Markus Triska
105e9c8e88
use get_single_char/1
2020-04-18 14:33:11 +02:00
notoria
99e1a5f117
Removed $raw_input_read_char
2020-04-18 13:54:18 +02:00
notoria
b35b49f7b3
get_single_char reads Tab as \t
2020-04-18 13:33:42 +02:00
notoria
5d064b18e6
get_single_char reads Enter as \n
2020-04-18 13:30:52 +02:00
notoria
11ea92288d
Moved get_single_char from builtins.pl to charsio.pl
2020-04-18 12:52:49 +02:00
notoria
1ea6ae9fd9
Added predicate for reading a single character
2020-04-18 11:49:28 +02:00
Mark Thom
57d739673a
index Constant::Usize ( #355 )
2020-04-15 14:11:45 -06:00
Mark Thom
4d8f76e922
quote single dots only
2020-04-15 13:45:35 -06:00
Mark Thom
fb41d4ab0f
Merge pull request #354 from triska/master
...
ADDED: list_to_set/2, using the first occurrence of each element
2020-04-15 13:19:54 -03:00
Mark Thom
023ee688d3
allow characters as atoms in Machine::use_module and Machine::use_qualified_module
2020-04-15 10:32:23 -06:00
Mark Thom
5f8f0d8573
remove underscores in printed variables produced by write_term_to_chars ( #340 )
2020-04-15 10:27:20 -06:00
Mark Thom
f56e0a6586
don't count the terminator in PStrIter len
2020-04-15 10:07:44 -06:00
Markus Triska
2c96420bc4
ADDED: list_to_set/2, using the first occurrence of each element
...
Example:
?- list_to_set([B,a,b,a,B,A,b,A], Ls).
Ls = [B,a,b,A]
; false.
2020-04-15 18:04:01 +02:00
Mark Thom
8d95eb57fa
quote dot when quoted(true) ( #349 )
2020-04-15 00:54:32 -06:00
Mark Thom
a9a5e79e85
privilege new op declarations over old ones ( #346 )
2020-04-15 00:37:00 -06:00
Mark Thom
2b720b8d0b
interrupt running queries and return to toplevel ( #323 )
2020-04-15 00:08:35 -06:00
Mark Thom
93a0ab7f0a
write [a,b,c] correctly with write_canonical ( #349 )
2020-04-14 23:25:15 -06:00
Mark Thom
18dd55d1f4
Merge branch 'master' of https://github.com/mthom/rusty-wam
2020-04-14 23:15:01 -06:00
Mark Thom
c9074d8d96
properly iterate through UTF-8 strings ( #350 )
2020-04-14 23:14:47 -06:00
Mark Thom
f6c995157e
clean up print_list_like
2020-04-14 14:26:30 -06:00
Mark Thom
a059a9fbdc
print lists as strings when possible ( #295 )
2020-04-14 13:28:51 -06:00