Files
harbour-core/harbour/samples/cccppc/prtree.cls
1999-11-09 01:37:27 +00:00

32 lines
776 B
OpenEdge ABL
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// $Id$
//
//*******************************************************************
// prtree.cls: Parser tree. Elemz“ f t kezel“ objektum
// 1999, Csisz r Levente
// Egy elemz“ f t lehet vele felpˇteni s kezelni.
class PRTREE OBJECT
attrib nWords // H ny sz˘ van benne.
attrib tree // Ez maga a fa.
// Az elemz“ fa:
// <root>:=<node>
// <node>:={ [<terminal>,] <inner branch1>, <inner branch2>, ... }
//
// <inner branch>:={item,<node>}
//
// <terminal>:={nil,result}
//
// item: A fa i. szintjn a keresett sz˘ i. eleme.
// result: Amikor az elemzs ksz s eremnyes, akkor a megtal lt
// <terminal>-ban lev“ result lesz a this:result-ban.
nmethod addWord(result,itemArray)
rmethod oinit()