loom
1#!/bin/bash
2
3# Тест работы с различными странными грамматики из книг и статей
4
5echo "Тесты грамматики =================================" > test/tmp/test-grammatize.out
6
7echo "Метод разбора LR(1) ------------------------------" >> test/tmp/test-grammatize.out
8
9for file in test/source/grammar/fuze/*.fuze
10do
11echo "--- ${file} :" >> test/tmp/test-grammatize.out
12cat ${file} >> test/tmp/test-grammatize.out
13echo "--- grammatize :" >> test/tmp/test-grammatize.out
14bin/simodo-grammatize -z lr ${file} >> test/tmp/test-grammatize.out
15done
16
17echo "Метод разбора SLR(0) -----------------------------" >> test/tmp/test-grammatize.out
18
19for file in test/source/grammar/fuze/*.fuze
20do
21echo "--- ${file} :" >> test/tmp/test-grammatize.out
22cat ${file} >> test/tmp/test-grammatize.out
23echo "--- grammatize :" >> test/tmp/test-grammatize.out
24bin/simodo-grammatize -z slr ${file} >> test/tmp/test-grammatize.out
25done
26
27exit 0
28