Konrad Hinsen
11/22/2024, 9:52 AMguitarvydas
11/22/2024, 8:26 PMKonrad Hinsen
11/23/2024, 9:24 AMguitarvydas
11/23/2024, 11:09 AMKonrad Hinsen
11/23/2024, 7:23 PMguitarvydas
11/24/2024, 4:19 AMimage(Name,X,Y,R,G,B)
palette(Color,R,G,B)
--->
image(Name, X, Y, Color)
and, would be written in Prolog as:
image(Name,X,Y,R,G,B) ,
palette(Color,R,G,B) ,
retract(image(Name,X,Y,R,G,B)),
retract(image(Name,X,Y,Color)),
assert(image(Name, X, Y, Color)).
And, in Ceptre it might be written as
image(Name,X,Y,R,G,B) * palette(Color,R,G,B) o- image(Name, X, Y, Color).
[My knee-jerk reaction would be to use t2t or OhmJS to rewrite the Ceptre syntax into Prolog syntax, then to run SWIPL on the result. Then, I would write yet another t2t program that would allow extending the Prolog-ish syntax by adding JS externals, then, spit that out as a /bin/bash pipeline (example syntax from an unrelated experiment <https://github.com/guitarvydas/das/blob/main/das2f/layerboundingbox.md>
)]. [Some months ago, I dissected the Ceptre dungeon crawler example and hand-mapped it to DPL syntax: <https://guitarvydas.github.io/2024/01/19/Ceptre-Dungeon-Crawler-Example-Walk-Through.html>
]Konrad Hinsen
11/25/2024, 7:56 AMguitarvydas
11/25/2024, 11:19 AMKonrad Hinsen
11/25/2024, 4:58 PMKonrad Hinsen
11/26/2024, 12:17 PMguitarvydas
12/03/2024, 2:04 PMKartik Agaram
guitarvydas
12/09/2024, 2:19 PM