/**
 * Générateur et librairie pour le compilateur.
 * @see Yaka.jj
 */
public class Make {
	
	public static void begin_program(){
		Yaka.yvm = new YVM(YakaTokenManager.identLu);
		Yaka.expression = new Expression(Yaka.yvm);
		Yaka.yvm.entete();
		}
	
	public static void end_program(){
		Yaka.yvm.queue();
	}
	
	public static void how_fat_are_you(){
		Yaka.yvm.ouvrePrinc(Declaration.getNbVariables());
	}
	
	public static void define_constant(){
		Declaration.setCurrentIdent(YakaTokenManager.identLu);
	}
	
	public static void define_int(){
		Declaration.createConst(YakaTokenManager.entierLu, Type.INTEGER);
	}
	
	public static void define_ident(){
		Declaration.createConst(YakaTokenManager.identLu);
	}
	
	public static void define_true(){
		Declaration.createConst(-1, Type.BOOLEAN);
	}
	
	public static void define_false(){
		Declaration.createConst(0, Type.BOOLEAN);
	}
	
	public static void create_var(){
		Declaration.createVar(YakaTokenManager.identLu);
	}
	
	public static void declare_var_bool(){
		Declaration.setCurrentType(Type.BOOLEAN);
	} 
	
	public static void declare_var_int(){
		Declaration.setCurrentType(Type.INTEGER);
	} 
	
	public static void reading(){
		Yaka.yvm.lireEnt(((IdVar) (TabIdent.getIdent(YakaTokenManager.identLu))).getOffset());
		
	}
	
	public static void write_expression(){
		Yaka.yvm.ecrireEnt();
	}
	
	public static void write_string(){
		Yaka.yvm.ecrireChaine(YakaTokenManager.chaineLue);
	}
	
	public static void aLaLigne(){
		Yaka.yvm.aLaLigne();
	}
}

@@ -1492,10 +1492,803 @@
 e();%0A%09%7D%0A
+%09%0A%09public static void whatRel()%7B%0A%09%09Yaka.expression.whatRel();%0A%09%7D%0A%09%0A%09public static void whatAdd()%7B%0A%09%09Yaka.expression.whatAdd();%0A%09%7D%0A%09%0A%09public static void whatMul()%7B%0A%09%09Yaka.expression.whatMul();%0A%09%7D%0A%09%0A%09public static void whatNeg()%7B%0A%09%09Yaka.expression.whatNeg();%0A%09%7D%0A%09%0A%09public static void value_int()%7B%0A%09%09Yaka.yvm.iconst(YakaTokenManager.entierLu);%0A%09%7D%0A%09%0A%09public static void value_ident()%7B%0A%09%09Ident id = TabIdent.getIdent(YakaTokenManager.identLu);%0A%09    if (id instanceof IdVar)%7B%0A%09 %09  Yaka.yvm.iload(((IdVar) TabIdent.getIdent(YakaTokenManager.identLu)).getOffset());%0A%09 %09  %7D else %7B%0A%09 %09  Yaka.yvm.iconst(((IdConst)TabIdent.getIdent(YakaTokenManager.identLu)).getVal());%0A%09 %09  %7D%0A%09%7D%0A%09%0A%09public static void value_true()%7B%0A%09%09Yaka.yvm.iconst(-1);%0A%09%7D%0A%09%0A%09public static void value_false()%7B%0A%09%09Yaka.yvm.iconst(0);%0A%09%7D%0A
 %7D%0A

Commit the good file