summaryrefslogtreecommitdiff
path: root/2003/i
diff options
context:
space:
mode:
Diffstat (limited to '2003/i')
-rw-r--r--2003/i/buzz/src/automate/grammar.yy2
-rw-r--r--2003/i/buzz/src/automate/lexer.ll2
-rw-r--r--2003/i/buzz/src/automate/strategie1.txt1
3 files changed, 5 insertions, 0 deletions
diff --git a/2003/i/buzz/src/automate/grammar.yy b/2003/i/buzz/src/automate/grammar.yy
index 04a001e..1fd4efc 100644
--- a/2003/i/buzz/src/automate/grammar.yy
+++ b/2003/i/buzz/src/automate/grammar.yy
@@ -68,9 +68,11 @@ grafcet:
| grafcet transition { $$ = $1; $$->m_grafcet.push_back (Grafcet::Elem ($2)); }
;
+/* # represente un label ex : # 25
etape: '#' NUM { $$ = new Etape ($2); }
;
+/*met les actions ici puis defini une classe pour l'action (avec parametres)
action: PRINT STRING { $$ = new ActionPrint (*$2); delete $2; }
;
diff --git a/2003/i/buzz/src/automate/lexer.ll b/2003/i/buzz/src/automate/lexer.ll
index 9f3ebb7..21e50be 100644
--- a/2003/i/buzz/src/automate/lexer.ll
+++ b/2003/i/buzz/src/automate/lexer.ll
@@ -25,6 +25,8 @@ STRING \"[^\n"]\"
%%
+/*Rajout des actions et des conditions ici*/
+
"goto" return GOTO;
"print" return PRINT;
diff --git a/2003/i/buzz/src/automate/strategie1.txt b/2003/i/buzz/src/automate/strategie1.txt
new file mode 100644
index 0000000..f83fd06
--- /dev/null
+++ b/2003/i/buzz/src/automate/strategie1.txt
@@ -0,0 +1 @@
+/*rien pour l'instant*/