better detect syntax errors in lexer.rs (#1771)

This commit is contained in:
Mark
2023-06-27 16:39:10 -06:00
parent 8613513b9c
commit 039fffb339
2 changed files with 8 additions and 1 deletions

View File

@@ -193,6 +193,7 @@ get_single_char(C) :-
% ```
read_from_chars(Chars, Term) :-
must_be(chars, Chars),
must_be(var, Term),
'$read_term_from_chars'(Chars, Term).
%% write_term_to_chars(+Term, +Options, -Chars).