Skip to content

Commit f341878

Browse files
committed
...
1 parent 92efc37 commit f341878

9 files changed

Lines changed: 32 additions & 54 deletions

AFD.generator.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<html>
33
<head>
4-
<title>Transformation ER en AFD</title>
4+
<title>Création d'un AFD</title>
55
<link rel="stylesheet" type="text/css" href="css/styles.css">
66
<style>
77
#eRESyntax {
@@ -31,7 +31,7 @@
3131
<body spellcheck="false">
3232
<div id="eTITLE">
3333
<a href="index.htm">Index</a>
34-
<h1>Transformation ER en AFD</h1>
34+
<h1>Création d'un AFD</h1>
3535
</div>
3636

3737
<div id="eMenu">

AnalyseSyntaxique.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Analyse syntaxique</h1>
2424
<ul>
2525
<li> Création d'un <a href="AFD.generator.htm">NFA</a> depuis l'analyse d'une ER.</li>
2626
<li> Analyse d'<a href="src/grammar/preview.htm">une grammaire</a></li>
27-
<li> Analyse du code générant un <a href="LexerAutomaton.module.generator.htm">module du lexer</a></li>
27+
<li> Analyse du code générant un <a href="Lexers.modules.generator.htm">module du lexer</a></li>
2828
<li> Analyse des <a href="src/zenLike/preview.htm">snippets ZenLike</a></li>
2929
<ul>
3030

LexerMultiRegExp.module.generator.htm

Lines changed: 0 additions & 34 deletions
This file was deleted.

Lexers.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h2>Observations</h2><section>
124124
<li>Le défaut: il est parfois préférable d'utiliser plusieurs AFD au lieu d'un.
125125
<ol>
126126
<li>La taille de l'automate résultat étant trop volumineuse, </li>
127-
<li>La <a href="LexerAutomaton.module.generator.htm">création de l'AFD</a> prennant beaucoup trop de temps.</li>
127+
<li>La <a href="Lexers.modules.generator.htm">création de l'AFD</a> prennant beaucoup trop de temps.</li>
128128
</ol>
129129
</li>
130130
</ul>
Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<link rel="stylesheet" type="text/css" href="widget/ProgressBar/css/styles.css">
66
<script src="widget/ProgressBar/js/scripts.js"></script>
77
<style>
8+
SECTION { margin: 0 0 0 1em; }
89
.result {
910
background: #FFF;
1011
color: #111;
@@ -34,7 +35,7 @@
3435
TEXTAREA {
3536
width: 100%;
3637
}
37-
H2 {
38+
.tableTitle {
3839
background: lightskyblue;
3940
margin:0;
4041
padding:0.25em;
@@ -93,6 +94,24 @@ <h1>Création de module</h1>
9394
<textarea id="eExport" spellcheck="false" wrap="off"></textarea>
9495
<div><label>Nombre de caractères : </label><b id="eExportSize"></b></div>
9596

97+
<h2>Les étapes</h2><section>
98+
<h3>La 1<sup>ère</sup> étape : Module pour les lexers à ER</h3><section>
99+
<p>Les expressions régulières obtenues ne sont pas parfaites :</p>
100+
<ul>
101+
<li>Il faut parfois ajouter le caractère spécial "\b"
102+
(limite d'un mot = position entre un mot et un espace)
103+
à la fin de l'expression régulière.<br>
104+
Vrai pour les mots clés et tous les mots composés des caractères [a-zA-Z_] en général.
105+
</li>
106+
<li>Les délimiteurs "(" et ")" sont à remplacer par "(?:" et ")",
107+
ou voir même être effacé.
108+
</li>
109+
</ul>
110+
<p>...se sont des choses à résoudre à l'analyse réalisé par la <a href="src/wiz/syntax.htm">syntaxe WIZ</a>.</p>
111+
</section>
112+
<h3>La dernière étape : Module pour le lexers à automate</h3><section></section>
113+
</section>
114+
96115
<script src="js/shared.js"></script>
97116
<script src="js/framework.js"></script>
98117

@@ -458,7 +477,7 @@ <h1>Création de module</h1>
458477
var bDisplayAnnotation = eDisplayAnnotation.checked
459478
var fFunction =function( e, a, sTitle ){
460479
if( e.checked && a.length ){
461-
aResult.push( '<tr><th colspan="2"><h2>'+ sTitle +'</h2></th></tr>' )
480+
aResult.push( '<tr><th colspan="2" class="tableTitle">'+ sTitle +'</th></tr>' )
462481
for(var i=0, ni=a.length; i<ni; i++ ){
463482
var s = a[i][0]
464483
var aOk = oOK[s]||[]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Comparaison de lexers à expressions régulières (ER) et d'un lexer à automate
88
- [Performance: scan](http://raphpell.github.io/JS.Compilation/Lexers.performance.scan.htm)
99
- [Performance: readToken](http://raphpell.github.io/JS.Compilation/Lexers.performance.readToken.htm)
1010
- [Performance: Analyse incrémentielle](http://raphpell.github.io/JS.Compilation/Lexers.performance.scan.incremental.htm)
11-
- [Création de module](http://raphpell.github.io/JS.Compilation/LexerAutomaton.module.generator.htm)
11+
- [Création de module](http://raphpell.github.io/JS.Compilation/Lexers.modules.generator.htm)
1212

1313
## Parser
1414
- [Compilation de grammaires LL, LR(0), SLR, LR(1)](http://raphpell.github.io/JS.Compilation/Parser.htm)

index.htm

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,12 @@ <h1>JS.Compilation</h1>
4343
<li>2.1.3. <a href="Lexers.performance.scan.htm">Performance: scan</a></li>
4444
<li>2.1.4. <a href="Lexers.performance.scan.incremental.htm">Performance: Analyse lexicale incrementielle</a></li>
4545
<li>2.1.5. <a href="Lexers.modules.preview.htm">Modules existants</a></li>
46-
</ol></li>
47-
<li>2.2. <b>Lexer à automates</b>
48-
<ol>
49-
<li>2.2.1. <a href="LexerAutomaton.module.generator.htm">Création de module</a>
46+
<li>2.1.6. <a href="Lexers.modules.generator.htm">Création de module</a>
5047
<ol>
51-
<li>2.2.1.1. <a href="AFD.generator.htm">Création d'un AFD</a></li>
52-
<li>2.2.1.2. <a href="AFD.aggregator.htm">Aggrégation d'AFD</a></li>
48+
<li>2.1.6.1. <a href="AFD.generator.htm">Création d'un AFD</a></li>
49+
<li>2.1.6.2. <a href="AFD.aggregator.htm">Aggrégation d'AFD</a></li>
5350
</ol></li>
5451
</ol></li>
55-
<li>2.3. <b>Lexer à expressions régulières</b>
56-
<ol>
57-
<li>2.3.1. <a href="LexerMultiRegExp.module.generator.htm">Création de module</a>
58-
</ol></li>
5952
</ol>
6053
<li>3. <a href="AnalyseSyntaxique.htm">Analyse syntaxique</a>
6154
<ol>

src/wiz/syntax.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2>Préambule</h2>
4343
<li>des noms de token devant précéder certain token pour qu'il soit véritablement reconnu</li>
4444
</ul>
4545

46-
<p>Lors de la <a href="../../LexerAutomaton.module.generator.htm">création de module pour le lexer</a></p>
46+
<p>Lors de la <a href="../../Lexers.modules.generator.htm">création de module pour le lexer</a></p>
4747
<ul>
4848
<li>les valeurs résultantes sont stockées même si elles ne sont pas exportées.</li>
4949
<li>elles sont réutilisables pour le calcul des modules suivant.</li>
@@ -186,7 +186,7 @@ <h2>Exemple</h2>
186186
<p>Je vous propose de :</p>
187187
<ul>
188188
<li><a href="preview.htm">visualiser l'analyse de cette syntaxe</a></li>
189-
<li><a href="../../LexerAutomaton.module.generator.htm">créer un module pour le lexer</a></li>
189+
<li><a href="../../Lexers.modules.generator.htm">créer un module pour le lexer</a></li>
190190
</ul>
191191

192192

xml/fr/doc/index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<h1>Documentation</h1>
3333

3434
<div class="warn">
35-
<big>Contenu en cours d'élaboration 25/03/2015</big><br>
35+
<big>Contenu en cours d'élaboration</big><br>
3636
</div>
3737

3838
<section><table>

0 commit comments

Comments
 (0)