Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #126 from replit/af-add-prolog
Browse files Browse the repository at this point in the history
Add GNU Prolog support
  • Loading branch information
ALANVF committed Jul 13, 2020
2 parents d08a8af + 03aa52c commit f5bac71
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions languages/prolog.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name = "prolog"
entrypoint = "main.pro"
extensions = [
"pro",
"prolog",
"wam"
]
packages = [
"gprolog"
]

[compile]
command = [
"gplc",
"--no-top-level",
"-o",
"main"
]

[run]
command = [
"./main"
]

[tests]

[tests.hello]
code = ":- initialization(main).\nmain :- write('hello, world\\n')."
output = "hello, world\n"

0 comments on commit f5bac71

Please sign in to comment.