loom
1#!/bin/bash
2
3# Тест работы универсального парсера с грамматикой из "книги дракона""
4
5echo "Тесты парсера ====================================" > test/tmp/test-parse.out
6
7bin/simodo-grammatize -u -z slr test/source/grammar/book/book.fuze >> test/tmp/test-parse.out
8
9for file in test/source/grammar/book/*.dsl
10do
11echo "--- ${file} :" >> test/tmp/test-parse.out
12cat ${file} >> test/tmp/test-parse.out
13echo "--- parse :" >> test/tmp/test-parse.out
14bin/simodo-parse -l --lex data/grammar/lex/lex-book.json -g test/source/grammar/book/book.fuze ${file} >> test/tmp/test-parse.out
15done
16
17exit 0
18