From a47797ded74f6aa8e4193eff4c05d1df415c3c6a Mon Sep 17 00:00:00 2001 From: bisset Date: Mon, 26 May 2003 06:13:34 +0000 Subject: *** empty log message *** --- 2003/i/buzz/src/automate/grammar.yy | 2 ++ 2003/i/buzz/src/automate/lexer.ll | 2 ++ 2003/i/buzz/src/automate/strategie1.txt | 1 + 3 files changed, 5 insertions(+) create mode 100644 2003/i/buzz/src/automate/strategie1.txt (limited to '2003/i/buzz/src') 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*/ -- cgit v1.2.3