Prolog as DSL for generating Perl code?

Does anyone know of any code examples written in the prolog for implementing DSL to generate Perl code?

+3
source share
4 answers

DCG can be a great choice!

I used a similar approach to generate UML class diagrams (in fact, the code for the graphical code for such diagrams) from simple English sentences (shameless-plug: document here ). Instead, it should be possible to do something similar with generating Perl code.

(CHR) , . / DCG.

, DCG , Perl.

+2

, ?

Perl - , , Perl- Prolog; , , Perl "DSL", Perl, ?

, , , .

+1

, , , , , AI:: Prolog , . , Perl Perl.

+1

SWI-Prolog (http/html_write) DCG DSL .

Prolog HTML, . " " , , " " RDF.

, " " " ", YUI ( Cliopatria).

, , , , .

+1

Source: https://habr.com/ru/post/1793855/


All Articles