X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=forth.jl.git;a=blobdiff_plain;f=README.md;h=a6e0645b2a34c19dcd6b0b5fa86dc14107186679;hp=c213372e1fbbadef79ed4c16589545ee783875a8;hb=43cd7e6d8968a85ee9250033080268caafef5a47;hpb=97b6b09881f94f55d0419d8557d2b00f816a18cb diff --git a/README.md b/README.md index c213372..a6e0645 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ that which it has already fulfilled: forcing me to think quite carefully about how forth works. This package owes a massive debt to the existence of the literate programming -project [JonesForth] (https://rwmj.wordpress.com/2010/08/07/jonesforth-git-repository/), +project [JonesForth](https://rwmj.wordpress.com/2010/08/07/jonesforth-git-repository/), which was an amazing read. To a large degree my package is simply a port of that project from x86 assembly + forth to julia + forth, although the mapping is in a few places non-trivial due to the fact that julia is a high level @@ -26,6 +26,9 @@ install it, you will therefore need to use the following command: julia> Pkg.clone("https://github.com/tgvaughan/forth.jl") +Currently, forth.jl **requires** Julia 0.6. (Incompatabilities exist between +0.6 and previous versions of julia, particularly the handling of [world age](https://github.com/JuliaLang/julia/pull/17057).) + ## Usage To start the interpreter/compiler running, simply enter the following at @@ -41,12 +44,10 @@ the library file. Once this is complete you can start entering forth commands: star * ok There's an example Mandelbrot Set drawing program included in the examples -directory. To run it, use the `INCLUDE` word to open the file and compile its -definitions. Although the exact location of the examples directory in your -filesystem is platform dependent, `INCLUDE` includes the forth.jl src/ directory -in its search path so the following should always work: +directory. To run it, use the `INCLUDE-LIB` word to open the file and compile its +definitions: - include ../examples/mandelbrot.4th + include-lib ../examples/mandelbrot.4th Enter 'mandel' to draw the Mandelbrot Set. ok mandel * @@ -80,14 +81,16 @@ in its search path so the following should always work: ** ok -To exit, enter ^D on a blank line or use the `BYE` word. +(`INCLUDE-LIB` is exactly like INCLUDE, but includes files relative to thte +platform-dependent forth.jl src/ directory.) To exit, enter ^D on a blank line +or use the `BYE` word. ## FORTH-83 Compliance One of my goals has been to have forth.jl contain as much of the [F83 required word set](http://forth.sourceforge.net/standard/fst83/fst83-12.htm) as makes sense given the underlying VM. (Actually, my main goal goes a bit -beyond this: I want to be able to, with a couple of exceptions, be compatible +beyond this: I want to forth.jl to be, with a couple of exceptions, compatible with the description of forth contained in the second edition of Leo Brodie's book "Starting Forth".) I'm fairly happy with my progress so far. Of the 131 required F83 words, only 20 remain unimplemented. These words fall into