有没有人为Iphone开发获得ECL Lisp的任何代码示例? [英] Has anyone got any code examples of ECL Lisp for Iphone development?

查看:199
本文介绍了有没有人为Iphone开发获得ECL Lisp的任何代码示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现了有关Iphone的Lisp,并希望找到一些代码示例。

I found out about Lisp for the Iphone recently and wanted to find some code examples.

https://github.com/TerjeNorderhaug/ecl-iphone-builder/#readme

推荐答案

ECL for iOS发行版包含在iPhone上运行的Common Lisp应用程序的代码示例。

示例是一个Swank服务器, SLIME MCLIDE Lisp开发环境(披露:我是后者的开发者)。

The example is a Swank server, the backend for the SLIME and MCLIDE Lisp development environments (disclosure: I am the developer of the latter).

按照中的步骤操作自述文件将构建应用程序并将其放在iPhone / iPad上,或者放在Xcode附带的iPhone模拟器上。然后,您可以使用SLIME或MCLIDE连接到iOS设备,提供REPL,您可以直接在设备上评估Lisp表达式并交互式开发应用程序。

Following the steps in the readme will build the application and place it on your iPhone/iPad, or alternatively on the iPhone simulator that comes with Xcode. You can then connect to the iOS device using SLIME or MCLIDE, providing a REPL from which you can evaluate Lisp expressions directly on the device and interactively develop the app.

代码运行 init.lisp 文件中的示例应用程序启动时的设备。它当前加载swank服务器并通过文本字段,按钮和警告对话框通知用户。 ECL for iPhone项目尚未提供Lisp的大量用户界面功能,但您可以使用Xcode Interface Builder来设计GUI。

The code example in the init.lisp file runs on the device as the application starts. It currently loads the swank server and notifies the user with a text field, button and alert dialog. The ECL for iPhone project doesn't yet provide much user interface functionality from Lisp, but you can use the Xcode Interface Builder to design the GUI.

ECL编译为C和支持内联Objective-C,因此您可以将Common Lisp用作顶层的抽象层,或者将Common Lisp实现的功能与Objective-C代码集成。该项目的存储库包括合并的示例使用Objective-C的Common Lisp,包括基本小部件的实现。

ECL compiles to C and supports inline Objective-C, so you can use Common Lisp as an abstraction layer on top or integrate Common Lisp implemented functionality with Objective-C code. The repository for the project includes examples of combining Common Lisp with Objective-C, including the implementation of basic widgets.

这篇关于有没有人为Iphone开发获得ECL Lisp的任何代码示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆