loom
1#!/bin/bash
2
3# Тест работы универсального парсера с грамматикой из "книги дракона""
4
5echo "Тесты парсера ====================================" > test/tmp/test-parse.out6
7bin/simodo-grammatize -u -z slr test/source/grammar/book/book.fuze >> test/tmp/test-parse.out8
9for file in test/source/grammar/book/*.dsl10do
11echo "--- ${file} :" >> test/tmp/test-parse.out12cat ${file} >> test/tmp/test-parse.out13echo "--- parse :" >> test/tmp/test-parse.out14bin/simodo-parse -l --lex data/grammar/lex/lex-book.json -g test/source/grammar/book/book.fuze ${file} >> test/tmp/test-parse.out15done
16
17exit 018