Home > Archive > Prolog > March 2008 > Prolog Control Flow
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Prolog Control Flow
|
|
| bdotstadler@gmail.com 2008-02-12, 7:16 pm |
| Hello all,
I've recently taken over a Prolog based project with thousands of
lines of code across multiple files. I'm looking to create a
hierarchical control flow of the calls. For example, I take argument
X and the output of the program would be a hierarchy of its flow
through the calls in the code. Essentially, I am looking for
something similar to cflow, http://www.gnu.org/software/cflow/.
If anyone knows of such a thing I would appreciate it.
Sincerely,
| |
| Jan Wielemaker 2008-02-12, 7:16 pm |
| On 2008-02-12, bdotstadler@gmail.com <bdotstadler@gmail.com> wrote:
> Hello all,
>
> I've recently taken over a Prolog based project with thousands of
> lines of code across multiple files. I'm looking to create a
> hierarchical control flow of the calls. For example, I take argument
> X and the output of the program would be a hierarchy of its flow
> through the calls in the code. Essentially, I am looking for
> something similar to cflow, http://www.gnu.org/software/cflow/.
>
> If anyone knows of such a thing I would appreciate it.
Which Prolog system?
--- Jan
| |
| bdotstadler@gmail.com 2008-02-12, 7:16 pm |
| On Feb 12, 3:11 pm, Jan Wielemaker <j...@nospam.ct.xs4all.nl> wrote:
> On 2008-02-12, bdotstad...@gmail.com <bdotstad...@gmail.com> wrote:
>
>
>
>
> Which Prolog system?
>
> --- Jan
SWI
| |
| Zoubidoo 2008-02-21, 8:11 am |
| On Feb 12, 9:41 pm, bdotstad...@gmail.com wrote:
> On Feb 12, 3:11 pm, Jan Wielemaker <j...@nospam.ct.xs4all.nl> wrote:
>
>
>
>
>
>
>
>
>
> SWI
bump. Are there solutions for any prolog system?
| |
| Jan Wielemaker 2008-02-21, 8:11 am |
| On 2008-02-21, Zoubidoo <Stancomb@gmail.com> wrote:
> On Feb 12, 9:41 pm, bdotstad...@gmail.com wrote:
>
>
> bump. Are there solutions for any prolog system?
The old nightmare. On the other hand, I once tried a bit of SQL
programming and it is even harder to write a portable SQL program than
a portable Prolog program. More good news is that you can write most
of this nice and portable. One of the problems is the different
module system and a control-flow analyzer needs to understand the
syntax and semantics of the module system ...
Cheers --- Jan
| |
| Zoubidoo 2008-02-21, 7:12 pm |
| On Feb 21, 2:38 pm, Jan Wielemaker <j...@nospam.ct.xs4all.nl> wrote:
> On 2008-02-21, Zoubidoo <Stanc...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
> The old nightmare. On the other hand, I once tried a bit of SQL
> programming and it is even harder to write a portable SQL program than
> a portable Prolog program. More good news is that you can write most
> of this nice and portable. One of the problems is the different
> module system and a control-flow analyzer needs to understand the
> syntax and semantics of the module system ...
>
> Cheers --- Jan
Thanks for the explanation Jan. It's a shame modules and portability
in general are slowly killing prolog :-(
| |
|
| On Thu, 21 Feb 2008 13:58:29 -0800 (PST), Zoubidoo
<Stancomb@gmail.com> wrote:
>
>
>Thanks for the explanation Jan. It's a shame modules and portability
>in general are slowly killing prolog :-(
"Killing Prolog"?...Where?... I think Prolog is doing pretty well.
A.L.
| |
|
| On Feb 12, 8:41 pm, bdotstad...@gmail.com wrote:
> SWI
Sorry If some someone actually answered your question already and I
missed it but I couldn't find an answer once the thread Godwin'd into
prolog-death... I think that what you are looking for in SWI is
called gxref. It should be installed as standard if you have the
graphical libraries set up. Just load your program into the toplevel
and do
?- gxref.
Amoss
|
|
|
|
|