Inform 7 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
Inform 7 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
Inform 7 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 Artistic License 2.0
开发语言
操作系统 未知
软件类型 开源软件
所属分类 编程语言
开源组织
地区 不详
投 递 者 罗奇奇
适用人群 未知
收录时间 2022-04-29

软件简介

Inform 7 是一种使用自然语言语法创建交互式小说的特定领域编程语言。它使用自然语言并借鉴语言学和文学编程的思想,被广泛用作文学写作的媒介、游戏行业的原型制作工具,根据 TIOBE 指数,Inform 曾多次跻身最具影响力的 100 种编程语言之列。

Inform 本身是一个软件,但开源的并不是单个程序,而是程序和资源的集合,Inform 7 由三个主要部分组成:专门用于创作/测试交互式小说的开发工具 Inform 7 IDE 、用于编译语言的 Inform 7 编译器,以及构成 Inform 7 核心库的“标准规则”。

代码示例:

"Hello Deductible" by "I.F. Author"

The story headline is "An Interactive Example".

The Living Room is a room. "A comfortably furnished living room."
The Kitchen is north of the Living Room.
The Front Door is south of the Living Room.
The Front Door is a door. The Front Door is closed and locked.

The insurance salesman is a man in the Living Room. The description is "An insurance salesman in a tacky polyester suit. He seems eager to speak to you." Understand "man" as the insurance salesman.

A briefcase is carried by the insurance salesman. The description is "A slightly worn, black briefcase."  Understand "case" as the briefcase.

The insurance paperwork is in the briefcase. The description is "Page after page of small legalese." Understand "papers" or "documents" or "forms" as the paperwork.

Instead of listening to the insurance salesman: 
	say "The salesman bores you with a discussion of life insurance policies. From his briefcase he pulls some paperwork which he hands to you.";
	move the insurance paperwork to the player.
展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击加入讨论🔥(2) 发布并加入讨论🔥
发表了资讯
2022/04/29 08:38

用于写交互式小说的 Inform 7 编程语言正式开源

Inform 7 是一种使用自然语言语法创建交互式小说的编程语言,曾多次跻身 TIOBE 指数编程语言前 100 之列。目前,Inform 7 编程语言及其组件已正式宣布在 GitHub 上基于 Artistic License 开源。 Inform 本身是一种用于制作交互式小说的编程语言和设计系统,最初由 Graham Nelson 于 1993 年创建。 而 Inform 7 诞生于 2006 年 4 月 , 基于基础的 Inform 作了进一步抽象,使编译器能进一步推断句子的含义。 Inform 7 由三个主要...

4
16
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
2 评论
15 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部