Nick Smith
09/18/2020, 9:51 AMPrathyush
09/18/2020, 10:19 PMNick Smith
09/18/2020, 10:42 PMScott Anderson
09/22/2020, 6:45 AMNick Smith
09/22/2020, 7:26 AMNick Smith
09/22/2020, 7:28 AMScott Anderson
09/22/2020, 5:07 PMScott Anderson
09/22/2020, 5:09 PMwtaysom
09/23/2020, 5:37 AM<!DOCTYPE html>
<html>
<body>
<svg height="100" width="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
Becomes something like this:
svg(document).
height(document, 100).
width(document, 100).
in(document, c).
circle(c).
cx(c, 50).
cy(c, 50).
r(c, 40).
stroke(c, black).
stroke-width(c, 3).
fill(c, red).
Is this natural? Do the things you want to do with the document correspond to the constructs that the Logic language have?
fill(S, red) :- bold-red(S).
stroke(S, black) :- bold-red(S).
stroke-width(S, 3) :- bold-red(S).
Maybe. That's promising. What would this mean?
bold-red(c).
fill(c, blue).
Keep following this and you might discover some new features you want in your logic programming language.