四人帮:lexi 编辑 c++来源

发布于 2024-10-15 02:05:07 字数 616 浏览 0 评论 0原文

我正在阅读“设计模式:可重用 OOSW 的元素”。在第二章中,作者提供了一个他们称为 Lexi 的编辑器的案例研究,该编辑器似乎是用 C++ 编写的。我环顾四周,但唯一的有用的链接我可以找到这样说:

Gof 在一份说明中告诉我们 Lexi 是 基于“Doc”的文本编辑 考尔德开发的应用程序”。但是 本文仅概述一个编辑器, 没有任何来源。而且我什至相信 今天,莱克西从未真正存在过 一个程序。

该链接提供了 Delphi 源代码。我追求 C++,因为这是我喜欢的,也是本书中使用的。

有人知道在哪里可以找到 Lexi 的 C++ 源代码吗?如果原件从未存在过,那么最好找到一些我可以用作基础的东西。我真的不想从头开始编写自己的文本编辑器,这样我就可以完成本书中的案例研究。

I'm reading "Design Patterns: Elements of Reusable OOSW". In chapter two, the authors provide a case study of an editor they refer to as Lexi, which seems to be written in C++. I've looked around everywhere, but the only useful link I could find said this:

The Gof tell us in a note that Lexi is
based on "Doc, a text editing
application developed by Calder". But
this paper only outlines an editor,
without any source. And I even believe
today that Lexi never truly existed as
a program
.

The link provides Delphi source. I'm after C++, cause that's what I'm comfortable with, and that's what's used in the book.

Does anybody know where I can find C++ source for Lexi? If the original never existed, it would be good to find something that I can use as a base. I really don't feel like writing my own text editor from scratch just so I can work through the case study in this book.

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

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

发布评论

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

评论(7

清晨说晚安 2024-10-22 02:05:07

Doc 是使用 InterViews UI 工具包开发的。我相信该文档源是 InterViews 发行版的一部分。 Doc 被用来排版 Paul 的论文。 (Paul Calder 是我在弗林德斯大学的讲师)

如果您查看 InterViews 代码,您可能会感到惊讶。它是在现代 C++ 出现之前开发的。例如,没有模板。而且代码中没有任何注释。

据我了解,莱克西从未存在过。它是由 GoF 创建的作为本书的示例。

Doc was developed using the InterViews UI toolkit. I believe that doc source is part of the InterViews distribution. Doc was used to typeset Paul's thesis. (Paul Calder was my lecturer at Flinders University)

If you look at the InterViews code you might be surprised. It was developed before modern C++ existed. For example, there are no templates. And there are no comments in the code.

To my understanding, Lexi never existed. It was created as an example for the book by GoF.

北方的韩爷 2024-10-22 02:05:07

也许 Java 实现可以提供帮助,因为它更类似于 C++。这里是:
jexieditor - 基于 JavaSE 的所见即所得编辑器。无论如何,我还没有看过代码

Maybe a Java implementation can help, being it more similar to c++. Here it is:
jexieditor - A WYSIWYG editor based on JavaSE. I have not had a look at the code yet, anyway

风尘浪孓 2024-10-22 02:05:07

我可能在这里暴露了我的年龄,但是你确定 C++ 吗?我有一种有趣的感觉,当那本书最初出版时,它可能是面向 Smalltalk 的。这只是在我脑海深处挥之不去的事情,恐怕我无法证实它

I may be showing my age here but are you sure about C++? I have a funny feeling that when that book came out originally it may have been oriented toward Smalltalk. Its just something nagging at the back of my mind, I can't substantiate it I'm afraid

哆兒滾 2024-10-22 02:05:07

我目前正在实现 Lexi 模拟,请看一下 https://github.com/romaonishuk/LexI。实现仍在进行中,但 GoF 中描述的大部分模式和概念都是使用 C++ 实现的。

I'm currently implementing Lexi analog, pls take a look https://github.com/romaonishuk/LexI. Implementation is still in progress, but most of the described in GoF patterns and concepts are implemented using C++.

吻安 2024-10-22 02:05:07

这是 LEXI 的代码源,不幸的是用 Delphi 编写LEXI 来源

This is the code source of LEXI, written in Delphi unfortunately for you: LEXI sources.

拥抱没勇气 2024-10-22 02:05:07

看来源代码可能位于 1998 年推出的设计模式 CD-ROM 版本中。根据 亚马逊列表,CD 包含(除其他外):

演示模式实现的示例代码

此外,

所有模式都是根据现实世界的示例编译的,并包含演示如何在面向对象的编程语言(例如 C++ 和 Smalltalk)中实现它们的代码。已经拥有这本书的读者将希望 CD 能够利用其动态搜索机制和即装即用模式。

从列表中无法判断这些代码示例是否包含完整的 Lexi 源代码,而且 CD 的当前价格(86.87 英镑)相当高。但可能值得检查一下当地图书馆是否有该 CD 的库存。

It appears that the source code might be on the CD-ROM version of Design Patterns that came out in 1998. According to the Amazon listing, the CD contains (among other things):

Sample code demonstrating pattern implementation

Furthermore,

All patterns are compiled from real-world examples and include code that demonstrates how they may be implemented in object-oriented programming languages such as C++ and Smalltalk. Readers who already own the book will want the CD to take advantage of its dynamic search mechanism and ready-to-install patterns.

Whether these code samples include the full Lexi source is impossible to tell from the listing, and the current price of the CD (£86.87) is rather high. But it might be worth checking if any local libraries have the CD in stock.

红墙和绿瓦 2024-10-22 02:05:07

我只是想知道是否存在真正有效的 Lexi 版本,以便有具体的参考,但我没有找到。
我在 GitHub 上找到了这个 Java 版本: https://github.com/AmitDutta/lexi
我不知道,也许这对某人的目的有用。

I was just trying to find out if a real working Lexi version exists, to have a concrete reference, but I didn't find it.
I found this Java version on GitHub: https://github.com/AmitDutta/lexi
I don't know, maybe it could be useful for someone's purpose here.

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