realbasic 支持哪些语言?

发布于 2024-08-21 01:54:10 字数 171 浏览 11 评论 0原文

一位朋友告诉我,我可以通过 realbasic 中的 php 插件创建 mac 应用程序。这是真的吗?我疯狂地搜索了网络,但语法没有 使用插件查看任何接近 php 的内容。你所做的就是编写函数调用并在其中编写你的 php 代码。但这有点愚蠢。我想知道的是这个应用程序支持哪些语言以及它是什么语言或接近我在其教程中看到的语言?谢谢

a friend told me that i possibly can create mac applications via the php plugin in realbasic. is this true? ive searched the net like crazy and the syntax doesnt
look anything close to php using the plugin that is. all u do is write function calls and write your php in it. but that is kind of dumb. what i wanna know is what languages are supported in this app and what lanuage is it or close to that i see in its tutorials? thnx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

悲凉≈ 2024-08-28 01:54:10

REAL Studio(以前称为 REALbasic)是一种完全面向对象的 BASIC 语言,可编译本机 Macintosh OS X、Windows 和 Linux 可执行文件。 IDE 包含创建应用程序所需的所有编辑器和编译器。

Monkeybread Software 提供了一个 php 插件,允许您调用 REALbasic 中的 php 脚本。它们还提供了一种在 REALbasic 应用程序中使用 Java 类的方法。一般来说,插件允许您在 RB 框架之外调用 C 代码。

REAL Studio (formerly called REALbasic) is a fully object oriented BASIC language that compiles native Macintosh OS X, Windows and Linux executables. The IDE contains all of the editors and compilers needed to create applications.

Monkeybread Software offers a php plugin that allows you to call php scripts in REALbasic. They also offer a way to use Java classes from within a REALbasic application. Plugins, in general, allow you to call C code outside of the RB frameworks.

空城缀染半城烟沙 2024-08-28 01:54:10

REALBasic 可以做到这一点吗?

REALBsic 回顾

REALBasic 是允许程序员使用 BASIC 编程语言开发应用程序的工具...REALBasic 还将为 MAC OS Classic 和 MAC OS X 创建应用程序。

您的朋友可能错误地认为支持其他语言。

Can REALBasic do this?

A Review of REALBasic says

REALBasic is tool that allows programmers to develop applications using the BASIC programming language ... REALBasic will also create applications for MAC OS Classic and MAC OS X.

Your friend may have been mistaken about support for other languages.

与风相奔跑 2024-08-28 01:54:10

澄清有点晚了,但可能需要完成,因为这里有点混乱。

简短回答:是的。您可以在 REALStudio(REALBasic 的 IDE)中使用 PHP。由于某种原因,上面的大多数答案都犯了过于严格或过于宽松的解释。

REALBasic 是语言。
REALStudio 是 IDE 和编译器。

REALStudio 接受可以使用 REALBasic 从 IDE 中调用的插件。这些插件可以通过编程执行任何可能的操作,包括调用其他语言解释器。

有PHP、Lua、JavaScript等语言的插件。当包含插件时,它们提供可以调用来执行脚本并处理结果的函数。这并不意味着这些语言的功能被添加到 REALStudio 中,而是意味着整个解释器可以运行,就像在命令行中运行它一样。

'Comments in REALBasic start with a '
'Double quotes are escaped by doubling them, ""like so""

'Initialize a new PHP object
dim p as PHPMBS
p=new PHPMBS

'Put the PHP code into a string
dim phpFunction as string = "echo ""Hello"";"

'Result is a string variable where the result will be assigned
dim result as string

'Assign the result of the PHP Function to the string variable
result=p.Execute(phpFunction)

'Pop up an alert with the message
msgBox result

当然,您可以将整个 PHP 文件包含到可执行文件中并调用它们并执行它们,结果可以是文本或图像,您可以在以后使用它或将其输入到另一个 PHP 函数中。

想象一下 PHP 引擎被编译为一个库并可供可执行文件访问,就像大多数其他语言/IDE 一样。

请记住,PHP 插件目前是需要付费的第 3 方模块。

A bit of a late clarification, but probably needs to be done since there's a bit of confusion here.

Short answer: YES. You can use PHP in REALStudio (the IDE to REALBasic). Most of the answers above err on the too strict or too lax interpretations for some reason.

REALBasic is the language.
REALStudio is the IDE and compiler.

REALStudio accepts plug-ins that can be called from within the IDE using REALBasic. These plug-ins can do anything programmatically possible, including calling other language interpreters.

There are plug-is for PHP, Lua, JavaScript and other languages. These, when the plug-in is included, offer functions that can be called to execute scripts and deal with the result. It doesn't mean that these language's functions are added to REALStudio's, but that the whole interpreter can be run, in the same way you'd run it in the command line.

'Comments in REALBasic start with a '
'Double quotes are escaped by doubling them, ""like so""

'Initialize a new PHP object
dim p as PHPMBS
p=new PHPMBS

'Put the PHP code into a string
dim phpFunction as string = "echo ""Hello"";"

'Result is a string variable where the result will be assigned
dim result as string

'Assign the result of the PHP Function to the string variable
result=p.Execute(phpFunction)

'Pop up an alert with the message
msgBox result

Of course, you can include whole PHP files into your executable and call them and execute them, the result can be text or an image you can do stuff with afterwards or feed into yet another PHP function.

Imagine the PHP engine compiled as a library and accessible to your executable, like in most other languages/IDEs.

Keep in mind the PHP plug-in is currently a 3rd party module that needs to be paid for.

宛菡 2024-08-28 01:54:10

也许你的朋友正在想尤玛?它允许您使用 REALbasic 编写网站脚本(很像 PHP)。

http://www.yumadev.com/

Perhaps your friend was thinking of Yuma? It allows you to do web site site scripting (much like PHP) using REALbasic.

http://www.yumadev.com/

掌心的温暖 2024-08-28 01:54:10

REALStudio 是 REAL Software BASIC 版本的 IDE。它针对 MacOS、Windows 和 Linux 进行编译。 IDE 支持一种语言 - BASIC。

REALStudio is an IDE for REAL Software's version of BASIC. It compiles for MacOS, Windows and Linux. The IDE supports one language- BASIC.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文