Markus Triska
Markus Triska
@aarroyoc: Does `path_canonical/2` from `library(files)` work for you? https://github.com/mthom/scryer-prolog/blob/ca62e54652ace8374225e9f43f28aac508819255/src/lib/files.pl#L140
I suggest to use the existing functionality if it suffices for your use case. In case you need to create for example `"/Users/pmoura/some_new_file"`, simply specify that path (there is no...
In case environment variables are needed, I suggest `getenv/2` from `library(os)`, together with **`path_segments/2`** from `library(files)`.
https://github.com/mthom/scryer-prolog/pull/377 solves (1) and (3).
@notoria: Thank you for looking into it, I would greatly enjoy working on this with you. I have filed #394 as one of the prerequisites for this project.
`dynamic` is not a (standard) operator, please write the directive in functional notation, i.e.: :- dynamic(def/2).
`phrase_from_file/2` is the best way to read from a file, and would be the preferred method even if streams were already available. Using `phrase_from_file/2`, a good way to rewrite `assert_defs/1`...
Regarding the "incomplete reduction" error: 6.3.3.1 Arguments An argument (represented by arg in the syntax rules) occurs as the argument of a compound term or element of a list. It...
@matt2xu: Thank you a lot for working on this, it seems you are very close to being done! Here is a version of `lines//1`: lines([]) --> call(eos), !. lines([L|Ls]) -->...
@matt2xu : Please also check out the debugging constructs from #461 ! They make debugging very easy while staying very close to the program under consideration.