I wrote a lexer and parser in Prolog. He combines the string with his AST. This is part of the compiler / interpreter project I'm working on. Naturally, now I want to read a line from a file for its analysis. However, the predicates that I found for this are to read , and it only reads the atoms and predicates of Prolog, for example files with
hello.
I changed the double_quotes settings , but without success.
I want to read a file with something like this
let id = \x.x in id (S (S Z))
and then send this line to the parsing predicates.
source
share