-
I have a very simple program:
The data is here, and it comes from a Google Sheets export. I just get an error with the following:
which doesn't make much sense to me. I tried in the repl:
I'm not sure why it isn't parsing, as github seems to recognize it fine, and the parser seems to recognize crlf. I'd like some help with finding out why. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
This line:
should be (if in a file), for example, like this:
The "head" was missing. The repl case works in my case... |
Beta Was this translation helpful? Give feedback.
-
In addition to what @haijinSk wrote, I tried the REPL interaction with the latest git version on OSX, and it worked: $ scryer-prolog -f ?- use_module(library(pio)). true. ?- use_module(library(csv)). true. ?- phrase_from_file(parse_csv(Data),"data.csv"). Data = frame(["Timestamp","Name","Discord Username ..."|...]). Version: $ scryer-prolog -v v0.9.3-55-g631674db |
Beta Was this translation helpful? Give feedback.
This line:
:- phrase_from_file(parse_csv(Data),"data.csv"), write(Data).
should be (if in a file), for example, like this:
run :- phrase_from_file(parse_csv(Data),"data.csv"), write(Data).
The "head" was missing.
The repl case works in my case...