QBasic语言规范
我受到一个朋友的挑战,用QBasic编写一个QBasic编译器。
在哪里可以找到该语言最新版本的语言规范?
I have been challenged by a friend to write a QBasic compiler in QBasic.
Where can I find a language specification for the latest version of the language?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Microsoft 的 QBasic IDE 附带了相当完整的语言文档和提供的例程。据我所知,这大概是您能找到的最完整的规范,但除了未记录的 DOS 特定的 peek/poke 魔法之外,它应该足以为(大部分)语言编写编译器。
Microsoft's QBasic IDE comes with fairly complete documentation of the language and provided routines. So far as I know, that is about as complete a specification as you'll find, but it should be enough to write a compiler for (most of) the language, aside from undocumented DOS-specific peek/poke magic.
QB64 是 QBasic 的一个很好的克隆/扩展,它有一个 wiki,其中包含非常详细的 语言参考 按字母顺序、用法排序,或 语法上。
注意:以下划线(“_”)前缀的关键字是不属于经典 QBasic 语言的扩展。
QB64 is a nice clone/extension of QBasic which has a wiki that contains a very detailed language reference sorted alphabetically, by usage, or syntactically.
Note: keywords prefixed with an underscore ('_') are extensions that were NOT part of the classic QBasic language.
QuickBasic 4.5可以编译成*.exe
QuickBasic 4.5 can compile into *.exe
您只需在浏览器中输入:
QB64
即可找到最新版本 - 这就是现在所谓/重做的 QBasic 版本,具有更大的机会。他们有自己的论坛、YT 频道,甚至Discord。顺便说一句,他们刚刚制作了新的 1.5 版本!
You can find the latest version by just typing in your browser:
QB64
- it's how it is nowadays called/redone version of QBasic with a bigger aspect of opportunities. They have their forum, YT Channel and even Discord.BTW they've just made a new 1.5 version!