我不想把“功能要求”混为一谈。
:30:0 Syntax error: Operator expected
下面第一行是我犯错误之处:
Fun(FXs) --> name(F),
ws,
[0 (],
ws,
args(Xs),
ws,
[0 )],
{FXs =.. [F, Xs]}.
name(N) --> id(Cs),
{atom_chars(Cs, N)}.
I have exhaustively searched Google for help with errors in DCG parsing, and I have not found anything. An explanation on what I am doing wrong will be helpful, or any resources that would allow me to understand DCG more!