public Result getValueOf(string value) { Symbole s = null; try { s = this.symboles[value]; } catch (Exception e) {} if (s != null) { try { return(this.symboles[value].checkValue(new Contexte())?Result.TRUE:Result.FALSE); } catch (UndefinedValueException) { return(Result.UNDEFINED); } } else { Console.WriteLine("Impossible de trouver le symbole " + value); return(Result.FALSE); } }
private static Core initCore() { Core.resetCore(); Core core = Core.getCore(); Symbole symA = new Symbole("A"); Symbole symB = new Symbole("B"); symB.addRelation(new RightNormal(symA)); return(core); }
public void addSymbole(string value, Symbole s) { this.symboles[value] = s; }
public RightAnd(Symbole rightSymbole, ProgramObject leftObject) { this.rightSymbole = rightSymbole; this.leftObject = leftObject; }