
# $1 is the number of samples

results_dir='./sampled_grammars'  #where to store results
rm -r ${results_dir}
mkdir ${results_dir}


for (( i=1; i<=$1; i++ ))
do
yap -L run.pl -- $i > one_grammar.txt
cat one_grammar.txt >> ${results_dir}/all_grammars.txt
done

