Giter Site home page Giter Site logo

kbryan / x64 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spitbol/x64

0.0 2.0 0.0 38.09 MB

SPITBOL for the 64-bit x86-x64 (amd64) architecture, running on Unix and its derivatives, including Linux and OSX.

License: Other

Makefile 0.71% Assembly 70.94% Shell 0.14% C 24.24% C++ 3.96% HTML 0.02%

x64's Introduction

SPITBOL x64

SPITBOL x64 is an efficient implementation of the SNOBOL4 programming language for the 64-bit architecture x86-64 (amd64), using the Unix system and its derivatives, including Linux and OSX.

It is written in a portable assembly language called MINIMAL, with runtime support provided by code written in C.

Executable binaries

Ready-to-run binary executables can be found in the directory ./bin.

  • OSX SPITBOL: ./bin/sbl_osx

  • Unix SPITBOL: ./bin/sbl_unix

Sample Program

Here is a simple SPITBOL calculator that reads each line from standard input, tries to evalute it, and writes the result to standard output. The code can be found in ./demos/calc.spt Note, for example, that 23+4 is a string, while 23 + 4 is an integer (27).

*    A simple calculator in SPITBOL

*    Copyright 2015 David Shields

*    Read lines from standard input, evalute each as
*    an expression, and write the result and its datatype
*    to standard output.

    			:(loop)
error
*   Here if error, so print error message and continue
    output = 'failure evaluating'
    output = '**  '  line 
loop
    output = 'enter expression to evaluate:'
    line = input			:f(end)
    result = eval(line)		:f(error)
    output = result 
    output = datatype(result)	:(loop)
end

Documentation

Directory ./docs contains documentation:

  • The SNOBOL4 Programming Language, Griswold, et. al. ./docs/green-book.pdf

This is the classic introduction to SNOBOL4, known affectionately to SNOBOL enthusiasts as "The Green Book," due to its bright green cover.

  • SPITBOL User Manual, Emmer and Quillen ./docs/spitbol-manual.pdf

This is a comprehensive manual for SPITBOL, including many examples and tutorials.

  • Minimal Specification ./docs/spitbol-reference-manual.md

This document describes the portable assembly language used to implement SPITBOL.

Demonstration Programs

Demonstration programs from the SPITBOL User Manual can be found in ./demos

Building SPITBOL

To build spitbol (./sbl)

OSX:

	make osx
	make test_osx

Unix:

	make unix
	make test_unix

See readme.txt for instructions on interpreting the test output.

License

SPITBOL is licensed under the GPL (v2 or later) license. All code needed to build the system is included in this repository.

x64's People

Contributors

daveshields avatar markemmer avatar

Watchers

 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.