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

56 lines
1.2 KiB
Plaintext
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.
/*
* $Id$
*/
//*******************************************************************
// rsmmarkr.prg: Az RSMMARKR oszt ly implement ci¢ja.
// 1999, Csisz r Levente
//*******************************************************************
#include "ctoken.ch"
//*******************************************************************
#include "objgen.ch"
// #include "token.och"
//*******************************************************************
#define _RSMMARKR_PRG_
#define _IMPLEMENT_ONEW_
#include "rsmmarkr.och"
//*******************************************************************
implement oinit(id,str,file,line,pos)
super:oinit(id,str,file,line,pos)
this:wordList :={}
return this
//*******************************************************************
implement getStr()
local str,i
if (!this:id==TKID_RESTRICTED_MATCH_MARKER)
return super:getStr()
endif
str:=""
for i:=1 to len(this:wordList)
if (i>1)
str+=","
endif
str+=this:wordList[i]
end for
str:="<"+if(this:str==nil,"",this:str)+":"+str+">"
if (this:isError())
str+=", Error: "+this:errorStr()+guessedEol()
endif
return str
//*******************************************************************