首先让我们来看一下涉及文本宏编程的元编程。
First let's look at metaprogramming that involves textual macro languages.
更多有关C 预处理器宏编程的内容可以在CPP手册中看到(请参阅 参考资料一节中的链接)。
More information about C preprocessor macro programming is available in the CPP manual (see the Resources section for a link).
鉴于两者的优越性,提出一种新的编程方法,将图形编程和宏编程相结合,用图形化的方法形成对宏程序的调用指令。
Considering the advantages of the two ways, a new approach is proposed which combines them with each other by using graphs to form macro-call instruction.
程序员注意:若想创建卓越的软件,则应添加宏编程功能,从而允许用户社区能够增强您的工具以适应他们自己的偏好。
Programmers take note: If you want to create great software, then add the ability to program macros, allowing your community of users to be able to enhance your tool to suit their own tastes.
使用这一个宏,就可以节省很多编程的工作,它可以生成一个使用整数进行索引的数学表。
With that single macro, you can take away a lot of work for any program that has to generate mathematical tables indexed by integer.
创建一个hats宏,以通过组成主机交易的主机界面来提供编程的导航。
Create a HATS macro to provide programmed navigation through the host screens that make up your host transaction.
因为宏可以以任何方式展开常规代码,所以如果声明式语言不能满足需要,那么随时可以切换回命令式编程。
Since the macro expands to regular code anyway, you can always switch back to imperative programming if the declarative language doesn't suit your needs.
使用嵌入式SQL,数据库编程的复杂性可以通过一些宏子语言来屏蔽。
With Embedded SQL, the intricacies of database programming are masked by a sort of macro sub-language.
data宏语言只有几个关于编程格式的规则。
The Net.Data macro language has only a few rules about programming format.
利用hats宏配置文件,您可以在多个主机屏幕上进行可编程的导航。
With the HATS macro configuration file, you can provide programmed navigation through multiple host screens.
两者结合使用可方便地定义新语句,无需扩展语法,也无需使用类似宏的元编程工具。
A joint use of both features facilitates the definition of new statements without extending the syntax and without using macro-like meta-programming facilities.
对于许多元编程任务,这个特性使宏更可预测并容易使用。
For a wide variety of metaprogramming tasks, this feature makes macros more predictable and easier to work with.
本系列文章的第 2部分将详细介绍如何编写Scheme宏,以及如何使用这些宏来极大地简化大型编程任务。
Part 2 of this series examines in more detail how to program Scheme macros and how they can make your large-scale programming tasks significantly easier.
本文详细介绍如何编写scheme宏以及它们如何显著地简化大型编程任务。
This article gives you details on how Scheme macros are programmed and how they can make your large-scale programming tasks significantly easier.
要支持我的观点,我要告诉你一样其它4种语言都没有的东西:离了宏,你咋能编程呢?
And to support this claim I'll tell you about one of the things I find missing when I look at the other four languages. How can you get anything done in them, I think, without macros?
宏把使用程序员定义的语言结构编写的代码段翻译成编程语言可以理解的语句。
Macros translate segments of code that have been written in a language structure defined by the programmer into statements that the programming language understands.
许多编程语言也容许叫做宏的小型翻译程序。
Many programming languages also permit minitranslation programs called macros.
本文介绍一个宏汇编程序。
对超高分辨率显示适配器的驱动程序和用8087宏汇编实现预处理的编程方法也进行了讨论。
The driving program of super-resolution display adapter and the programming method of processing program with 8087 macroassembler are discussed as well.
用户可能混合并且使用两个VBA并且“宏”编程形式和逻辑既没提供面向对象的可能性。
Users may use two mixed and VBA and "macro" programming forms and logic to provide neither the possibility of object-oriented.
演示如何使用宏对各种自动化模型进行编程。
Illustrates how to program against the various automation models by using macros.
编译器必须告诉汇编程序什么时候切换段。这些宏控制应该输出什么命令来告诉汇编程序这些信息。你也可以定义额外的段。
The compiler must tell the assembler when to switch sections. These macros control what commands to output to tell the assembler this. You can also define additional sections.
汇编程序采用的一种动作,例如在宏定义展开时,它用一个值来代替一个变量符号。
The action taken by the assembler when it replaces a variable symbol with a value , for example , during the expansion of a macro definition.
该显示模块用80286宏汇编语言编程,能与FORTRAN 语言接口实现其图形功能,可以方便地用来进行机构学或其它方面的图形显示。
The display block is developed with 80286- macro-assembly and can be interfaced with FORTRAN to realize graphic functions. It is conveniently used to mechanism display and other purposes.
熟练掌握80x86宏汇编语言程序设计的基本技术、编程和调试。
Adroitness control 80x86 grand the basic technology of assembly language programming, process designing and debug.
本文利用FANUC及SIEMENS数控系统的宏指令功能,设计了编程零点变换宏程序和零件成组加工宏程序。
In this paper macroinstructions of FANUC and SIEMENS NC systems are employed to design macroprograms of programming zero transforming and group machining of workpiece.
在此基础上利用宏子程序进行数控编程,采用行切法切削加工。该方法简便易行,且能保证零件的表面粗糙度和加工精度。
On the basis of putting forward a new method of calculating joint, programming NC code adopting macro processor and subprogram, machining surface of part by means of row cutting.
如何:编辑宏和以编程方式创建宏。
如何:编辑宏和以编程方式创建宏。
应用推荐