TPaxCompiler, TPaxProgram and TPaxPascalLanguages are Delphi components that allows you to embed the paxCompiler into Delphi, Kylix or Borland C++ Builder application so you can customize and extend the application without having to recompile it.
TPaxCompiler allows you to compile scripts.
- Methods
- Properties
- Events
TPaxProgram represents compiled script (machine code).
- Methods
- Properties
- Events
TPaxPascalLanguage represents parser of Pascal language.
- Methods
TPaxCompilerDebugger allows you to debug scripts.
- Methods
- Properties
TPaxCompilerExplorer allows you to explore compiled scripts.
- Methods
- Properties
- TPaxInvoke allows you to dynamically invoke a global function or a method of object.
- Procedure
allows you to create stand alone executable files. Click here to download a test application (pascal_tester.zip, 1.2 MB).procedure CreateExeFile(const ExeName: String; PaxProgram: TPaxProgram; const DllName: String; const ProcName: String);PaxCompiler registration routines
Using global registration routines (see PaxRegister.pas) allows you to share registered items with all paxCompiler instances and to decrease footprint of each paxCompiler instance. These routines provide an easy way to create import units (see IMPORT_SysUtils.pas, IMPORT_Classes.pas)).Demos
- "Hello" application
- Call a script-defined function
- Call a script-defined function by means of TPaxInvoke component
- Register host-defined types and variables
- Access to script-defined variables
- Loading compiled scripts
- Evaluate expression
- OnUsedUnit event
- Script-defined event handlers
- Inheritance of host-defined classes
- Code explorer
- Support of dll-defind functions
paxCompiler, implemented as paxcompilerlib.dll, can be used for scripting MS VC++ applications.Routines exported by paxcompilerlib.dll
Demos