summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
Commit message (Collapse)AuthorAgeFilesLines
* o Add proper stack checking to all file wordsjkh1998-11-071-28/+48
| | | | | | | | | o add fkey and fread o eliminate fexists now that this can be expressed in HLL forth ( : fexists fopen dup -1 <> if fclose 1 else drop 0 then ; ) :-) Once we get the ability to write files, it should be possible to do stand-alone rescue work from the 3rd stage boot. :)
* Eliminate much code cruft by extending simple file I/O API to includejkh1998-11-073-55/+101
| | | | fopen and fclose.
* Take init out of here - it's a layering violation.jkh1998-11-071-3/+0
|
* OK, fload/fexec work properly when both compiling and interpretingjkh1998-11-071-11/+9
| | | | now. Gack.
* switch words to default mode.jkh1998-11-061-4/+4
|
* Submit better fix to the prompt bug.jkh1998-11-062-3/+3
|
* Make fexists/fload work with existing string literals instead. Doingjkh1998-11-062-41/+9
| | | | my own string literal handling is just too wonky.
* Argh, I had this right[er] before. More commits to follow.jkh1998-11-061-2/+2
|
* Use proper literal names.jkh1998-11-061-2/+2
|
* Don't not print the prompt string; not doing this has funny side-effects.msmith1998-11-062-4/+6
| | | | Make the prompt an empty string instead.
* Remember a bit more of my forth and do:jkh1998-11-053-13/+55
| | | | | | | | | o Add fexists word to check for the presence of a file o make fexists and fload immediate words which DTRT both interpreted and compiled (doh!) o add an init word which gets run at bootstrapping time to do extra post-coldload initialization (in the default implementation, we look for /boot/boot.4th and load it if found).
* 1. rebuild all elements of testmain properly for safety.jkh1998-11-053-7/+99
| | | | 2. add fload and key prims for doing simple file and terminal I/O, respectively
* Explicitly invoke perl to run the softwords.pl script in case themsmith1998-11-051-2/+2
| | | | | script is not executable. Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
* Improve the assertion testing for successful softword compilation.msmith1998-11-041-4/+1
| | | | The excessive use of assert() vs. robust error checking is annoying.
* Fix includes; we were still pulling in <stdlib.h> in some places.msmith1998-11-0410-34/+54
| | | | | Support building a standalone interpreter with 'make testmain', remove win32 and egregious gets() in testmain.c
* Make this work in the libstand environment; don't use stdio/stdlib headers.msmith1998-11-047-30/+12
|
* Add the Ficl (Forth Inspired Command Language) interpreter. If all goes well,msmith1998-11-0322-0/+9735
this will allow us to manage bloat in the loader by using a bytecoded HLL rather than lots of C code. It also offers an opportunity for vendors or others with special applications to significantly customise the boot process without having to commit to a divergent code branch. This early commit is to allow others to experiment with the most effective mechanisms for integrating FICL with the loader as it currently stands. Ficl is distributed with the following license conditions: "Ficl is freeware. Use it in any way that you like, with the understanding that the code is not supported." All source files contain authorship attributions. Obtained from: John Sadler (john_sadler@alum.mit.edu)
OpenPOWER on IntegriCloud