From dc3d4d6a7282e94d0457f6868a68fc6766a194b4 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 29 May 2017 16:42:26 +0200 Subject: [PATCH] Proposition correction gram.txt --- scripts/gram.txt | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/scripts/gram.txt b/scripts/gram.txt index f432793..bba929f 100644 --- a/scripts/gram.txt +++ b/scripts/gram.txt @@ -13,6 +13,7 @@ Bienvenue dans l'outil d'aide au codage Traducteur version 1.0, B. CONRARD Grammaire du 14/5/14 modifie pour IMA2A modifié pour ROUSSEL et SUN +modifié par GBONTOUX le 29/05/17 [instruction]:inst ; {SOURCE}{inst} @@ -79,6 +80,14 @@ eti{NUM0}: [blanc]* "," [blanc]* [VariableIO]:var [blanc]* [SymboleAffectation] [blanc]* [Expression]:exp [blanc]* {exp} OUT {var},R16 +[blanc]* "," [blanc]* [Tableau]:var [Expression]:ind [blanc]* "]" [blanc]* [SymboleAffectation] [blanc]* [Expression]:exp [blanc]* +{ind} LDI R26,low({var}) + LDI R27,high({var}) + CLR R17 + ADD R26,R16 + ADC R27,R17 +{exp} ST X,R16 + [blanc]* "," [blanc]* [Variable]:var [blanc]* [SymboleAffectation] [blanc]* [Expression]:exp [blanc]* {exp} STS {var},R16 -- libgit2 0.21.2