diff --git a/test/compare_arbres_xml b/test/compare_arbres_xml index 840c889..d79d305 100755 Binary files a/test/compare_arbres_xml and b/test/compare_arbres_xml differ diff --git a/test/output/affect.asynt b/test/output/affect.asynt new file mode 100644 index 0000000..f92de39 --- /dev/null +++ b/test/output/affect.asynt @@ -0,0 +1,23 @@ + + + $a + + + + main + + + $a + 1 + + + + + $a + + + + + + + diff --git a/test/output/boucle.asynt b/test/output/boucle.asynt new file mode 100644 index 0000000..3f2aace --- /dev/null +++ b/test/output/boucle.asynt @@ -0,0 +1,63 @@ + + + $i + + $carre + + + + + main + + + $i + 0 + + + + + inf + + $i + + 10 + + + + $carre + + fois + + $i + + + $i + + + + + + + $carre + + + + + $i + + plus + + $i + + 1 + + + + + + + + + + + diff --git a/test/output/expression.asynt b/test/output/expression.asynt new file mode 100644 index 0000000..5a3244d --- /dev/null +++ b/test/output/expression.asynt @@ -0,0 +1,19 @@ + + + $a + + + + main + + + + fois + 5 + 2 + + + + + + diff --git a/test/output/max.asynt b/test/output/max.asynt new file mode 100644 index 0000000..e419965 --- /dev/null +++ b/test/output/max.asynt @@ -0,0 +1,106 @@ + + + + max + + $a + + $b + + + + + + inf + + $a + + + $b + + + + + + $b + + + + + + + + $a + + + + + + + + main + + $v_1 + + $v_2 + + + + + $v_1 + + + + + + $v_2 + + + + + + + egal + + + max + + + $v_1 + + + + $v_2 + + + + + + + + + $v_1 + + + + + + $v_1 + + + + + + + $v_2 + + + + + + + + + + + diff --git a/test/output/tri.asynt b/test/output/tri.asynt new file mode 100644 index 0000000..f1106e5 --- /dev/null +++ b/test/output/tri.asynt @@ -0,0 +1,418 @@ + + + $tab[10] + + + + initialiser + + + + $tab + 0 + + 8 + + + + + $tab + 1 + + 6 + + + + + $tab + 2 + + 9 + + + + + $tab + 3 + + 9 + + + + + $tab + 4 + + 4 + + + + + $tab + 5 + + 2 + + + + + $tab + 6 + + 3 + + + + + $tab + 7 + + 1 + + + + + $tab + 8 + + 4 + + + + + $tab + 9 + + 5 + + + + + + + + + + + + + + + afficher + + $n + + + $i + + + + $i + 0 + + + + + inf + + $i + + + $n + + + + + + + $tab + + $i + + + + + + + $i + + plus + + $i + + 1 + + + + + + + + 0 + + + + + + + + echanger + + $i + + $j + + + + $temp + + + + $temp + + + $tab + + $j + + + + + + + + $tab + + $j + + + + + $tab + + $i + + + + + + + + $tab + + $i + + + + $temp + + + + + + + + + trier + + $n + + + $echange + + $j + + $m + + + + + + $m + + $n + + + + + $echange + 1 + + + + + egal + + $echange + + 1 + + + + $echange + 0 + + + + $j + 0 + + + + + inf + + $j + + + moins + + $m + + 1 + + + + + + inf + + + $tab + + plus + + $j + + 1 + + + + + + $tab + + $j + + + + + + + + echanger + + + $j + + + + plus + + $j + + 1 + + + + + + + + + + $echange + 1 + + + + + + + $j + + plus + + $j + + 1 + + + + + + + + $m + + moins + + $m + + 1 + + + + + + + + + + + + + + main + + + + initialiser + + + + + + + + afficher + + 10 + + + + + + + + + trier + + 10 + + + + + + + + + afficher + + 10 + + + + + + + + + + + + + + + + diff --git a/test/testAll.sh b/test/testAll.sh index b9179ca..27b5904 100755 --- a/test/testAll.sh +++ b/test/testAll.sh @@ -12,7 +12,7 @@ MYCOMPILO="../compilateur-l" MYCOMPILOLEX="${MYCOMPILO} -l" MYCOMPILOSYNT="${MYCOMPILO} -s" -#MYCOMPILOASYNT="${MYCOMPILO} -a" +MYCOMPILOASYNT="${MYCOMPILO} -a" #MYCOMPILOTAB="${MYCOMPILO} -t" #MYCOMPILOMIPS="${MYCOMPILO} -m" @@ -68,8 +68,8 @@ function test_fichier_ok() { ${MYCOMPILOLEX} input/$input.l > output/$input.lex diff_prog "${REGDIFF}" $input lex diff_prog ${XMLDIFF} $input synt - #${MYCOMPILOASYNT} input/$input.l > output/$input.asynt - #diff_prog ${XMLDIFF} $input asynt + ${MYCOMPILOASYNT} input/$input.l > output/$input.asynt + diff_prog ${XMLDIFF} $input asynt #${MYCOMPILOTAB} input/$input.l > output/$input.tab #diff_prog "${REGDIFF}" $input tab #${MYCOMPILOMIPS} input/$input.l > output/$input.mips