dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 13 forks source link

Support windows line-endings in pamela input-files #177

Closed pmeijer closed 6 years ago

pmeijer commented 6 years ago

Attached example borrowed from pamela/test/pamela/cannon.pamela.

Specifically the command that fails is:

pamela -i cannon_win_lineendings.pamela -o cannon.ir.json --json-ir build

cannon_win_lineendings.pamela.log

The .log in the attached file was added in order to make github happy.

18-06-13 16:09:57 100806-pc ERROR [pamela.parser:0] - {:index 452,
 :reason [{:tag :string, :expecting "("}],
 :line 16,
 :column 1,
 :text ";; Pamela plant class"}

18-06-13 16:09:57 100806-pc ERROR [pamela.cli:0] - unable to parse: [#object[java.io.File 0x23184551 "<filePath>"]]
error: ["parse: invalid input file: <filePath>"]