Re: Prolog to SQL ..??




"Bore Biko" <bore_biko@xxxxxxxxxxx> wrote in message
news:deaie0$f4g$1@xxxxxxxxxxxxxxxxx
>
> russell kym horsell <kym@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:de3hd9$c2c$1@xxxxxxxxxxxxxxxxxxx
> > W <wgw at cruzio dot com> wrote:
> > > They look similar because they are based on relations. however there
are
> a
> > > lot of differences in the details.
> > [...]
> >
> >
> > There are lots of nice tricks, but translating Prolog to SQL is not
> > so strange if you just treat SQL like an assembly language ;-) and use
> > bottom-up evaluation when appropriate.
> >
> >
> > There are obviously times when a Prolog clause or 2 can be translated
> > almost verbatim into some other relational calculus (SQL, loosley),
> > but a more general purpose translation has to abandone the idea that
> > the resulting SQL "looks like" it's doing what the original Prolog was
> > doing and/or in much the same way.
> >
> >
> > If you want something REALLY tedious, try Prolog to Yacc.
>
> Dear,
>
> The problem with Yacc is that he make only finite state automata,
> and don't make a gramar.The raly good idea is to use a SQL
> as assembly language,but the problem is how to translate,
> a big heap of programs(FORMS and REPORTS) writen in
> PL/SQL(ORACLE) or INFORMIX 4GL, or(I don't know
> what of development tools DB2 uses....
> If you know any of people working around this idea ginve mee
> a conntact with them....
>
>
> Thanks in advance, Robert !
> robert.bralic@xxxxxxxxxxx
>
>
>
Dear,

I we bean so confused, and I rememberd that with
YACC you can make a gramar,so I think your idea
is not bad, but I will bee thankfull if you can give
me some references or books about YACC...
And what with applications writen in development
tools of databases I realy don't know...??


Thanks in advance, Robert !


.



Relevant Pages

  • Re: SQL to Prolog compiler?
    ... transactional stuff may not translate so easily, and I'm sure SQL has ... update -> query matching rows, ... It is tailored to a Prolog system where evaluable predicates ... Let E' denote the conditions that result from translating the ...
    (comp.lang.prolog)
  • Re: Prolog to SQL ..??
    ... > There are lots of nice tricks, but translating Prolog to SQL is not ... > so strange if you just treat SQL like an assembly language;-) and use ... > There are obviously times when a Prolog clause or 2 can be translated ... The problem with Yacc is that he make only finite state automata, ...
    (comp.lang.prolog)
  • Re: Prolog to SQL ..??
    ... There are lots of nice tricks, but translating Prolog to SQL is not ... so strange if you just treat SQL like an assembly language;-) and use ... There are obviously times when a Prolog clause or 2 can be translated ...
    (comp.lang.prolog)
  • Re: Critique of Robert C. Martins "Agile Principles, Patterns, and Practices"
    ... code in your book is WASTED on translating back and forth between two ... To the right the code deals with SQL, tables, rows, ... Martin commits a common OO mistake of making a hierarchy of "employee ...
    (comp.object)
  • Re: Prolog: A Toy For Erudition
    ... Informatics and Prolog are not my occupation. ... I asked help to this newsgroup, ... computer programs and "input data" and faithfully translating the output ... or a question about that problem from substantive terms into anything else ...
    (comp.lang.prolog)