|
|
A Debugging System Based on Natural Semantics1
|
|
|
|
|
نویسنده
|
Encina Alberto de la ,Llana Luis ,Rubio Fernando
|
منبع
|
journal of universal computer science - 2009 - دوره : 15 - شماره : 14 - صفحه:2836 -2880
|
چکیده
|
Due to the absence of side effects, reasoning about functional programs is simpler than reasoning about their imperative counterparts. however, because of the absence of practical debuggers, finding bugs in lazy functional languages has been more complex until quite recently. one of the easiest to use haskell debuggers is hood. its behavior is based on the concept of observation of intermediate data structures. however, although using hood can be simple when observing some structures, it is known that it can be hard to understand how it works when dealing with complex situations. in fact, the author of hood recognizes that it is necessary to formalize its behavior to explain better what should be expected, and also to allow to check whether the different implementations work properly. in this paper, we formalize the behavior of the hood debugger by extending sestoft’s natural semantics. moreover, we also show how to derive an abstract machine including such debugging information. by doing so, we do not only provide a formal foundation, but we also provide an alternative method to implement debuggers. in fact, we have already made a prototype of the abstract machine presented in this paper.
|
کلیدواژه
|
Words: Parallel functional programming ,debugging ,semantics ,abstract machines.
|
آدرس
|
Universidad Complutense de Madrid, Spain, Universidad Complutense de Madrid, Spain, Universidad Complutense de Madrid, Spain
|
پست الکترونیکی
|
fernando@sip.ucm.es
|
|
|
|
|
|
|
|
|
|
|
|
Authors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|