summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/automate
diff options
context:
space:
mode:
authorbisset2003-05-26 06:13:34 +0000
committerbisset2003-05-26 06:13:34 +0000
commita47797ded74f6aa8e4193eff4c05d1df415c3c6a (patch)
treecc34e2871d4640fb52789484c840fce6ebc2ccc9 /2003/i/buzz/src/automate
parent8808da5ae1dbc8f005bd5b2267cf31478d94b9e5 (diff)
*** empty log message ***
Diffstat (limited to '2003/i/buzz/src/automate')
-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*/