home *** CD-ROM | disk | FTP | other *** search
- unit uObjVM;
-
- interface
- uses Classes,
- Code,uExecution,LangValue,RootValue,OpList;
- type IObjVM=class(IValueOwner)
- public
- Ops:TOpList;
- Root:TRootValue;
- function StartExecution(c:TCode):IExecution;virtual;abstract;
- procedure Run(c:TCode);virtual;
- end;
- implementation
- procedure IObjVM.Run;
- Var e:IExecution;
- begin
- e:=StartExecution(c);
- try
- e.Run;
- e.Free;
- except
- e.Free;
- raise;
- end;
- end;
-
- end.
-