随手将TPaxScripter 3.0改成了支持Delphi 2009,Delphi 2010,Delphi Xe

最近有一个想法,瘦客户端的形式给客户提供应用,而BS方式又有很多局限性,所以在想能不能自己开一个这种构架?

于是着手研究,一不小心UI的生成部分已经弄好了,已经部分应用到一个项目,效果不错。

脚本这儿怎么实现呢,网上搜集了一些资料,觉得TPaxScripter还不错,就把它改成了支持Delphi 2009及后续版本

原以为很难,其实很简单:

1.增加版本支持,将Inc文件里增加VER180及后面的所有版本

2.修改所有ToString引用,前面加上单元

3.在RTTI读写属性时增加TKUString的支持

转载于:https://www.cnblogs.com/mall/archive/2011/06/16/2082440.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
paxCompiler is an embeddable compiler of the Object Pascal, Basic and javascript programming languages. The key features of the paxCompiler are: The compiler generates machine code for Intel compatible processors (IA-32 architecture). It is possible to use the compiler as a scripting engine. You can embed the compiler into host application, register host-defined types, routines, variables and constants for the engine, read/write script-defined variables, call script-defined functions etc. You can save/load compiled scripts to/from a stream. The compiler was initially written in Borland Delphi as a set of Delphi components. TPaxCompiler, TPaxProgram and TPaxPascalLanguage 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. Source code of paxCompiler is compatible with Free Pascal 2.0. paxCompiler, implemented as paxcompilerlib.dll, can be used for scripting Microsoft Visual C++ applications. The compiler supports Object Pascal language based on the Delphi 7 standard. Syntax of Basic language is similar to VB.NET. Script-defined functions support register (Borland fastcall), cdecl, stdcall, safecall, pascal and msfastcall (Microsoft fastcall) calling conventions. Cross-language programming support. You can use Pascal units in Basic and javascript programs and vice versa. COM support. TPaxCompilerDebugger and TPaxCompilerExplorer components implement debugger (breakpoints, call stack, watches, step over, trace into, run to cursor, pause) and code explorer capabilities. Script-defined types support run-time information (RTTI). You can bind instances of script-defined classes with dfm files. You can import host-defined types with paxCompiler importer. You can create stand alone executable files. Support of compiled units and run-time packages. paxCompiler engine is thread safe. The roadmap of the compiler includes: Java compiler, C++ compiler, built-in assembler.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值