Rajout des est_premier manquant
This commit is contained in:
@@ -47,7 +47,7 @@ void programme() {
|
|||||||
if( est_premier( _optDecVariables_, uniteCourante ) || est_premier( _listeDecFonctions_, uniteCourante )) {
|
if( est_premier( _optDecVariables_, uniteCourante ) || est_premier( _listeDecFonctions_, uniteCourante )) {
|
||||||
optDecVariables();
|
optDecVariables();
|
||||||
listeDecFonctions();
|
listeDecFonctions();
|
||||||
} else {
|
} else if ( !est_suivant( _listeDecFonctions_, uniteCourante ) ) {
|
||||||
syntaxError();
|
syntaxError();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ void optTailleTableau() {
|
|||||||
void listeDecFonctions() {
|
void listeDecFonctions() {
|
||||||
openSection( __func__ );
|
openSection( __func__ );
|
||||||
|
|
||||||
if( est_premier( _declarationFonction_, uniteCourante ) ) {
|
if( est_premier( _declarationFonction_, uniteCourante ) || est_premier( _listeDecFonctions_, uniteCourante ) ) {
|
||||||
declarationFonction();
|
declarationFonction();
|
||||||
listeDecFonctions();
|
listeDecFonctions();
|
||||||
} else if( !est_suivant( _listeDecFonctions_, uniteCourante ) ) {
|
} else if( !est_suivant( _listeDecFonctions_, uniteCourante ) ) {
|
||||||
@@ -296,7 +296,7 @@ void instructionBloc() {
|
|||||||
void listeInstructions() {
|
void listeInstructions() {
|
||||||
openSection( __func__ );
|
openSection( __func__ );
|
||||||
|
|
||||||
if( est_premier( _instruction_, uniteCourante ) ) {
|
if( est_premier( _instruction_, uniteCourante ) || est_premier( _listeInstructions_, uniteCourante ) ) {
|
||||||
instruction();
|
instruction();
|
||||||
listeInstructions();
|
listeInstructions();
|
||||||
} else if( !est_suivant( _listeInstructions_, uniteCourante ) ) {
|
} else if( !est_suivant( _listeInstructions_, uniteCourante ) ) {
|
||||||
@@ -756,7 +756,7 @@ void appelFct() {
|
|||||||
void listeExpressions() {
|
void listeExpressions() {
|
||||||
openSection( __func__ );
|
openSection( __func__ );
|
||||||
|
|
||||||
if( est_premier( _expression_, uniteCourante ) ) {
|
if( est_premier( _expression_, uniteCourante ) || est_premier( _listeExpressions_, uniteCourante ) ) {
|
||||||
expression();
|
expression();
|
||||||
listeExpressionsBis();
|
listeExpressionsBis();
|
||||||
} else if( !est_suivant( _listeExpressions_, uniteCourante ) ) {
|
} else if( !est_suivant( _listeExpressions_, uniteCourante ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user