Let's now look at a simple example of integrating Guile into a C language program.
我们来看一个简单的将Guile集成到c程序中的例子。
Now we just need a program to convert our macro into standard C. For this simple example, Perl is used because it can evaluate user code in a string, and its syntax is largely C-like.
现在我们只需要一个程序将这个宏转换成标准的 C 语言就可以了。 对于这个简单的例子来说,我们将使用 Perl 来实现这个程序,因为它可以对字符串中的用户代码进行评测,其语法也与 C 语言非常类似。
Let's move on to a slightly bigger program, one that USES more of the Lotus C API than our simple example.
让我们转移到稍大一点的一个程序上来,该程序使用了比简单例子中更多的Lotus C API。
应用推荐