public static Expression analyse(string source) { Expression.source = source; index = 0; prochainJeton(); return(OperateurOu.parse()); }
public static Expression parse() { Expression resultat; if (jeton == "(") { prochainJeton(); resultat = OperateurOu.parse(); if (jeton == null) { throw new Exception("Erreur de syntaxe"); } if (jeton != ")") { throw new Exception("Erreur de syntaxe"); } prochainJeton(); } else { resultat = MotCle.parse(); } return(resultat); }