Giter Club home page Giter Club logo

cxxforth's Introduction

Build Status

cxxforth: A Simple Forth Implementation in C++

by Kristopher Johnson

cxxforth is a simple implementation of a Forth system in C++.

The source code is written as a tutorial for implementing Forth, similar in spirit to JONESFORTH. A Markdown-format rendition of the source code is available in cxxforth.cpp.md.

cxxforth implements a subset of the words in the ANS Forth draft standard. Refer to that document for descriptions of those words. Additional non-ANS words are described in the cxxforth source code.

This is free and unencumbered software released into the public domain. See UNLICENSE.txt for details.


Building cxxforth

Building the cxxforth executable and other targets is easiest if you are on a UNIX-ish system that has make, cmake, and Clang or GCC. If you have those components, you can probably build cxxforth by just entering these commands:

cd wherever_your_files_are/cxxforth
make

If successful, the cxxforth executable will be built in the MyFiles/cxxforth/build/ subdirectory.

If you don't have one of those components, or if 'make' doesn't work, then it's not too hard to build it manually. You will need to create a file called cxxforthconfig.h, which can be empty, then you need to invoke your C++ compiler on the cxxforth.cpp source file, enabling whatever options might be needed for C++14 compatibility and to link with the necessary C++ and system libraries. For example, on a Linux system with gcc, you should be able to build it by entering these commands:

cd wherever_your_files_are/cxxforth
touch cxxforthconfig.h
g++ -std=c++14 -o cxxforth cxxforth.cpp

cxxforth's People

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.