18.11.2014 Views

Langages de l'informatique

Langages de l'informatique

Langages de l'informatique

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Machine p. 68 - Licence virtuelle<strong>de</strong>s droits d’usage en page 2.<br />

Le Paradigme Logique<br />

<strong>Langages</strong> <strong>de</strong> l’informatique<br />

Patrick Bellot<br />

Introduction<br />

Les langages<br />

Les paradigmes<br />

Modèle impératif abstrait<br />

Boehm et Jacopini<br />

Programmation impérative<br />

Programmation fonctionnelle<br />

Programmation en logique<br />

Gestion <strong>de</strong> la mémoire<br />

Quatre types <strong>de</strong> mémoire<br />

Gérer sa mémoire<br />

Comptage <strong>de</strong> référence<br />

Syntaxe et sémantique<br />

Sémantiques<br />

Analyse lexicale<br />

Analyse syntaxique<br />

Compilation<br />

Interprétation<br />

Née à Marseille dans les années 70, la programmation<br />

en logique permet d’utiliser une catégorie restreinte <strong>de</strong><br />

formules logiques pour programmer : les clauses<br />

<strong>de</strong> Horn.<br />

Clause <strong>de</strong> Horn<br />

Si q 1 (x,...) et ··· et q n (x,...) alors p(x,...)<br />

q 1 (x,...)∧···∧q n (x,...) ⇒ p(x,...)<br />

p(x,...) si q 1 (x,...) et ··· et q n (x,...)<br />

p(x,...) ⇐ q 1 (x,...)∧···∧q n (x,...)<br />

Clause Prolog<br />

p(x,...) :- q1(x,...), ... , qn(x,...).<br />

N.B. Colmerauer 1973 et Kowalski 1974.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!