Ajout eval final avec mips

This commit is contained in:
2016-04-01 11:43:25 +02:00
parent 4220e42d15
commit 0648a4006f
80 changed files with 11043 additions and 0 deletions

23
eval-fourni/input/max.l Normal file
View File

@@ -0,0 +1,23 @@
max( entier $a, entier $b )
{
si $a < $b alors {
retour $b;
}
retour $a;
}
main()
entier $v_1, entier $v_2;
{
$v_1 = lire();
$v_2 = lire();
si max( $v_1, $v_2 ) = $v_1 alors
{
ecrire( $v_1 );
}
sinon
{
ecrire( $v_2 );
}
}