You can use read_term_from_codes/3 but remember to pass the option end_of_term(eof) if the term doesn’t end with a dot. This is because the default end-of-term delimiter is dot.
Example:
read_term_from_codes(“a(a)”, X, [end_of_term(eof)])
X = a(a)
You can use read_term_from_codes/3 but remember to pass the option end_of_term(eof) if the term doesn’t end with a dot. This is because the default end-of-term delimiter is dot.
Example:
read_term_from_codes(“a(a)”, X, [end_of_term(eof)])
X = a(a)
No comments yet.