Giter Club home page Giter Club logo

fed's Introduction

Fed - An ed-inspired line editor in Forth

Fed is a simple line editor in Forth inspired by the classical Unix editor ed. It is designed to be small enough to be included in BYO Forth systems for processors such as the 6502 or 65816. Stripped of its comments, it comes to about 3.2 Kb of code.

Who's Ed?

Ed is a simple line editor, the oldest editor still shipped with modern Unix systems. The first version was written in 1971. Today it mostly used for jokes ("Vim? EMACS? Real programmers use ed!") and some shell scripts. See the Wikipedia entry on ed and the source code at GNU.org.

So Fed is a Forth clone of ed?

No, that wouldn't make sense in a Forth environment. Though Fed is inspired by ed, things have to be different because of the stack-based nature of Forth -- see the Fed Manual for details. Both are line editors, and some commands are the same, but there are also major differences.

What's a line editor anyway? Sounds primitive.

It is. As the name says, you are not free to move around the text as with a full-screen editor such as vim, but work one line at a time. Even worse, if you want to change a word in a line, you have to retype the whole thing.

That's stupid. Why would you want to recreate something like that?

While writing my own Forth, "Tali Forth" for the 6502, I realized that there was no standard, simple, small, portable editor that was not screen-based in the traditional Forth way (see Samuel A. Falvo II's VIBE as an example of a block editor). So I decided to write my own.

Seriously, why don't you write a real editor instead?

I'm planning to, someday -- that's the "Far Future Forth Editor" (FFFE) project. I assure you it will be most magnificent, awesome, and wonderful. However, I have zero experience in writing editors, so this is part of the learning process. Also, I need a small, portable Forth editor right now.

Where can I find more information about Fed?

There is a discussion thread about Fed and Forth editors in general at 6502.org.

Well, good luck with Fed.

Thanks! -- Scot W. Stevenson [email protected]

fed's People

Contributors

scotws avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.