You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it possible to show how to generate a JavaScript file starting from a Prolog file? The project shows the Prolog input and corresponding JavaScript output, but not how to get the output starting from the input. I'm a Prolog n00b ;)
The text was updated successfully, but these errors were encountered:
A single file can be compiled (using SWI-Prolog) with the command swipl -q -f src/compiler.pl -t transpile <prolog file>. It should be run in the project root (or just adjust paths). Another way is to load src/compiler.pl and then run goal transpile/1 with the Prolog file name. Many Prolog constructs are not supported (not, if-then-else). I hope I find time to update the README soon.
Would it possible to show how to generate a JavaScript file starting from a Prolog file? The project shows the Prolog input and corresponding JavaScript output, but not how to get the output starting from the input. I'm a Prolog n00b ;)
The text was updated successfully, but these errors were encountered: