loom
1#!/bin/bash
2
3# Тест работы с различными странными грамматики из книг и статей
4
5echo "Тесты грамматики =================================" > test/tmp/test-grammatize.out6
7echo "Метод разбора LR(1) ------------------------------" >> test/tmp/test-grammatize.out8
9for file in test/source/grammar/fuze/*.fuze10do
11echo "--- ${file} :" >> test/tmp/test-grammatize.out12cat ${file} >> test/tmp/test-grammatize.out13echo "--- grammatize :" >> test/tmp/test-grammatize.out14bin/simodo-grammatize -z lr ${file} >> test/tmp/test-grammatize.out15done
16
17echo "Метод разбора SLR(0) -----------------------------" >> test/tmp/test-grammatize.out18
19for file in test/source/grammar/fuze/*.fuze20do
21echo "--- ${file} :" >> test/tmp/test-grammatize.out22cat ${file} >> test/tmp/test-grammatize.out23echo "--- grammatize :" >> test/tmp/test-grammatize.out24bin/simodo-grammatize -z slr ${file} >> test/tmp/test-grammatize.out25done
26
27exit 028