mislamov / refal-old

Automatically exported from code.google.com/p/refal51
0 stars 0 forks source link

Ошибка в работе программы "GoodBrackets" из статьи #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Статья "Некоторое расширение языка Рефал"
http://ulm.uni.udm.ru/~soft/wiki/lib/exe/fetch.php?
media=ubs2009_direfal.pdf

Программа для определения правильного 
списка скобок.
Template GoodBrackets ::= { $empty | '(' GoodBrackets. ')' GoodBrackets. };
Go {
       $empty,
      <Card> : GoodBrackets.input = <Prout 'Ok'>;
      $empty = <Prout 'Not right'>;
   }
 Запуск программы и введение строки, содержащей "(()" или "())" с      
незакрытыми скобками либо другой строки, 
не удовлетворяющей условию,   
например:
1. (
2. )(
3. (((((

Вызывает подвисание системы на 3-6 минут 
из-за сильной загрузки процессора, 
а после в консоли появляется сообщение:

"This application has reguested the Runtime to terminate it in anunusual 
way.
Please contact the application's support team for more information."

  При введении строки "()()()" или ещё большего количества закрытых скобок, 
выводится стандартное сообщение об ошибке 
и закрытии приложения refal.exe 
от Microsoft.

Original issue reported on code.google.com by fox.ko...@gmail.com on 25 Nov 2009 at 4:07

GoogleCodeExporter commented 8 years ago

Original comment by fox.ko...@gmail.com on 25 Nov 2009 at 4:39

GoogleCodeExporter commented 8 years ago

Original comment by islamov....@gmail.com on 30 Nov 2009 at 7:15

GoogleCodeExporter commented 8 years ago

Original comment by islamov....@gmail.com on 17 Jun 2010 at 1:07