forth.jl.git
8 years agoFixed FORGET.
Tim Vaughan [Sat, 11 Jun 2016 01:51:13 +0000 (13:51 +1200)]
Fixed FORGET.

8 years agoFunctionally complete implementation.
Tim Vaughan [Mon, 6 Jun 2016 11:01:39 +0000 (23:01 +1200)]
Functionally complete implementation.

8 years agoUpdated README.
Tim Vaughan [Mon, 6 Jun 2016 02:10:31 +0000 (14:10 +1200)]
Updated README.

8 years agoImplemented ABORT".
Tim Vaughan [Mon, 6 Jun 2016 01:47:23 +0000 (13:47 +1200)]
Implemented ABORT".

8 years agoDecompilation works again.
Tim Vaughan [Sun, 5 Jun 2016 12:46:44 +0000 (00:46 +1200)]
Decompilation works again.

8 years agoFORGET works with vocabularies. Updated readme.
Tim Vaughan [Sat, 4 Jun 2016 10:15:53 +0000 (22:15 +1200)]
FORGET works with vocabularies.  Updated readme.

8 years agoWORDS now searches transient vocab only.
Tim Vaughan [Thu, 2 Jun 2016 11:26:11 +0000 (23:26 +1200)]
WORDS now searches transient vocab only.

TODO: FORGET and HIDE.

8 years agoFactored FIND.
Tim Vaughan [Thu, 2 Jun 2016 11:04:52 +0000 (23:04 +1200)]
Factored FIND.

8 years agoImplemented most vocab words.
Tim Vaughan [Thu, 2 Jun 2016 09:20:27 +0000 (21:20 +1200)]
Implemented most vocab words.

Still to do: update WORDS and FORGET.

8 years agoStill messing around with vocabs.
Tim Vaughan [Wed, 1 Jun 2016 13:01:04 +0000 (01:01 +1200)]
Still messing around with vocabs.

8 years agoImplemented CURRENT, FORTH, ORDER.
Tim Vaughan [Wed, 1 Jun 2016 12:06:56 +0000 (00:06 +1200)]
Implemented CURRENT, FORTH, ORDER.

8 years agoCorrect FORTH behaviour implemented.
Tim Vaughan [Wed, 1 Jun 2016 10:22:06 +0000 (22:22 +1200)]
Correct FORTH behaviour implemented.

8 years agoAdded CMOVE>
Tim Vaughan [Wed, 1 Jun 2016 09:32:48 +0000 (21:32 +1200)]
Added CMOVE>

8 years agoUsing standard field conversion words.
Tim Vaughan [Wed, 1 Jun 2016 09:05:36 +0000 (21:05 +1200)]
Using standard field conversion words.

8 years agoA bit of abstraction.
Tim Vaughan [Wed, 1 Jun 2016 06:00:33 +0000 (18:00 +1200)]
A bit of abstraction.

8 years agoFIND working again.
Tim Vaughan [Wed, 1 Jun 2016 00:33:34 +0000 (12:33 +1200)]
FIND working again.

8 years agoBroken draft of vocab implementation.
Tim Vaughan [Tue, 31 May 2016 21:46:12 +0000 (09:46 +1200)]
Broken draft of vocab implementation.

8 years agoWorking on vocabularies.
Tim Vaughan [Tue, 31 May 2016 19:34:46 +0000 (07:34 +1200)]
Working on vocabularies.

8 years agoUpdated README.
Tim Vaughan [Mon, 30 May 2016 11:31:46 +0000 (23:31 +1200)]
Updated README.

8 years agoFixed library loading bug.
Tim Vaughan [Mon, 30 May 2016 11:18:01 +0000 (23:18 +1200)]
Fixed library loading bug.

8 years agoUpdated README.
Tim Vaughan [Mon, 30 May 2016 00:41:23 +0000 (12:41 +1200)]
Updated README.

8 years agoAdded COMPILE.
Tim Vaughan [Sun, 29 May 2016 02:08:36 +0000 (14:08 +1200)]
Added COMPILE.

8 years agoRemoved unnecessary ['] primitive.
Tim Vaughan [Sun, 29 May 2016 01:45:25 +0000 (13:45 +1200)]
Removed unnecessary ['] primitive.

8 years agoDivided up library code.
Tim Vaughan [Sun, 29 May 2016 00:36:11 +0000 (12:36 +1200)]
Divided up library code.

8 years agoAll constants refering to CFAs are now labelled as such.
Tim Vaughan [Sat, 28 May 2016 23:06:36 +0000 (11:06 +1200)]
All constants refering to CFAs are now labelled as such.

8 years agoReimplemented EXPECT. Closes #1.
Tim Vaughan [Thu, 26 May 2016 12:03:40 +0000 (00:03 +1200)]
Reimplemented EXPECT.  Closes #1.

8 years agoAdded workable KEY.
Tim Vaughan [Thu, 26 May 2016 10:02:39 +0000 (22:02 +1200)]
Added workable KEY.

8 years agoFIND behaviour now standard. Closes #5.
Tim Vaughan [Wed, 25 May 2016 12:34:43 +0000 (00:34 +1200)]
FIND behaviour now standard. Closes #5.

To accomplish this it was necessary to include
a marker bit in the NFA ot allow for implementation
of >LFA and >NAME required for decompilation.

8 years agoWorking on standardizing FIND.
Tim Vaughan [Wed, 25 May 2016 05:43:08 +0000 (17:43 +1200)]
Working on standardizing FIND.

8 years agoReimplement CONSTANT, VARIABLE, VALUE using DOES>
Tim Vaughan [Tue, 24 May 2016 11:54:19 +0000 (23:54 +1200)]
Reimplement CONSTANT, VARIABLE, VALUE using DOES>

8 years agoCREATE/DOES> working. Closes #2.
Tim Vaughan [Tue, 24 May 2016 11:36:48 +0000 (23:36 +1200)]
CREATE/DOES> working.  Closes #2.

8 years agoWorking on CREATE/DOES>
Tim Vaughan [Tue, 24 May 2016 09:47:53 +0000 (21:47 +1200)]
Working on CREATE/DOES>

8 years agoStandardized HERE.
Tim Vaughan [Tue, 24 May 2016 10:02:45 +0000 (22:02 +1200)]
Standardized HERE.

8 years agoRemoved debug code.
Tim Vaughan [Mon, 23 May 2016 20:30:52 +0000 (08:30 +1200)]
Removed debug code.

8 years agoRSP0 and PSP0 now constants. Closes #4.
Tim Vaughan [Mon, 23 May 2016 12:48:59 +0000 (00:48 +1200)]
RSP0 and PSP0 now constants.  Closes #4.

8 years agoFixed residual INTERPRET bugs. Closes #3.
Tim Vaughan [Mon, 23 May 2016 12:31:32 +0000 (00:31 +1200)]
Fixed residual INTERPRET bugs. Closes #3.

8 years agoProblem is with lines >80 chars long.
Tim Vaughan [Mon, 23 May 2016 01:49:30 +0000 (13:49 +1200)]
Problem is with lines >80 chars long.

8 years agoAdequate handling of EOF restored.
Tim Vaughan [Mon, 23 May 2016 01:38:28 +0000 (13:38 +1200)]
Adequate handling of EOF restored.

8 years agoPinning down insidious bug in interpreter.
Tim Vaughan [Sun, 8 May 2016 01:40:27 +0000 (13:40 +1200)]
Pinning down insidious bug in interpreter.

Somehow mangles the parameter stack during LOOP.

8 years agoSlowly getting lib.4th to compile again.
Tim Vaughan [Sat, 7 May 2016 11:51:40 +0000 (23:51 +1200)]
Slowly getting lib.4th to compile again.

8 years agoCompiler working again.
Tim Vaughan [Sat, 7 May 2016 08:01:35 +0000 (20:01 +1200)]
Compiler working again.

8 years agodebugging compilation
Tim Vaughan [Sat, 7 May 2016 05:33:27 +0000 (17:33 +1200)]
debugging compilation

8 years agoDebugging interpreter.
Tim Vaughan [Sat, 7 May 2016 05:18:52 +0000 (17:18 +1200)]
Debugging interpreter.

8 years agoNew interpreter working.
Tim Vaughan [Sat, 7 May 2016 02:05:41 +0000 (14:05 +1200)]
New interpreter working.

8 years agoINTERPRET works for numbers in immediate mode.
Tim Vaughan [Sat, 7 May 2016 01:32:42 +0000 (13:32 +1200)]
INTERPRET works for numbers in immediate mode.

8 years agoRewriting INTERPRET.
Tim Vaughan [Fri, 6 May 2016 12:23:07 +0000 (00:23 +1200)]
Rewriting INTERPRET.

8 years agoImplemented COUNT, renamed TELL to TYPE
Tim Vaughan [Fri, 6 May 2016 08:22:35 +0000 (20:22 +1200)]
Implemented COUNT, renamed TELL to TYPE

8 years agoUse .( to print message in example
Tim Vaughan [Fri, 6 May 2016 07:08:56 +0000 (19:08 +1200)]
Use .( to print message in example

8 years agoImplemented \ comments as a word, implemented [CHAR]
Tim Vaughan [Fri, 6 May 2016 07:08:15 +0000 (19:08 +1200)]
Implemented \ comments as a word, implemented [CHAR]

8 years agoUpdate readme.
Tim Vaughan [Wed, 4 May 2016 09:21:14 +0000 (21:21 +1200)]
Update readme.

8 years agoWorking on CREATE/DOES>
Tim Vaughan [Mon, 2 May 2016 12:34:20 +0000 (00:34 +1200)]
Working on CREATE/DOES>

8 years agoAdded C,
Tim Vaughan [Mon, 2 May 2016 11:54:38 +0000 (23:54 +1200)]
Added C,

8 years agoImplemented FILL and ERASE.
Tim Vaughan [Mon, 2 May 2016 11:53:19 +0000 (23:53 +1200)]
Implemented FILL and ERASE.

8 years agoAdded .(, ." no longer applies in immediate mode.
Tim Vaughan [Mon, 2 May 2016 11:44:46 +0000 (23:44 +1200)]
Added .(, ." no longer applies in immediate mode.

8 years agoMade readme sound less silly.
Tim Vaughan [Mon, 2 May 2016 11:37:53 +0000 (23:37 +1200)]
Made readme sound less silly.

8 years agoCleaned up README.
Tim Vaughan [Mon, 2 May 2016 11:35:29 +0000 (23:35 +1200)]
Cleaned up README.

8 years agoAdded README
Tim Vaughan [Mon, 2 May 2016 02:40:29 +0000 (14:40 +1200)]
Added README

8 years agoCREATE, ALLOT and VARIABLE now work as they should.
Tim Vaughan [Mon, 2 May 2016 02:11:33 +0000 (14:11 +1200)]
CREATE, ALLOT and VARIABLE now work as they should.

8 years agoAdded UNUSED, made VM mem sizes more sensible.
Tim Vaughan [Mon, 2 May 2016 01:32:00 +0000 (13:32 +1200)]
Added UNUSED, made VM mem sizes more sensible.

8 years agoBetter placement of built-in constant/variable word defs.
Tim Vaughan [Mon, 2 May 2016 01:19:53 +0000 (13:19 +1200)]
Better placement of built-in constant/variable word defs.

8 years agoImproved decompiler support for non-docol words.
Tim Vaughan [Mon, 2 May 2016 01:12:40 +0000 (13:12 +1200)]
Improved decompiler support for non-docol words.

8 years agoRenamed CREATE to HEADER in prep for true CREATE/DOES>
Tim Vaughan [Sun, 1 May 2016 10:57:39 +0000 (22:57 +1200)]
Renamed CREATE to HEADER in prep for true CREATE/DOES>

8 years agovariables and constants now use DOVAR and DOCON
Tim Vaughan [Sun, 1 May 2016 00:06:39 +0000 (12:06 +1200)]
variables and constants now use DOVAR and DOCON

8 years agoID. sensible handles control characters in word names.
Tim Vaughan [Sat, 30 Apr 2016 22:53:44 +0000 (10:53 +1200)]
ID. sensible handles control characters in word names.

8 years agoTICK problem solved. (Split into ['] and '.)
Tim Vaughan [Sat, 30 Apr 2016 22:29:49 +0000 (10:29 +1200)]
TICK problem solved.  (Split into ['] and '.)

Follows forth 83 standard.

8 years agoPorted last of relevant jonesforth library code.
Tim Vaughan [Sat, 30 Apr 2016 13:23:32 +0000 (01:23 +1200)]
Ported last of relevant jonesforth library code.

8 years agoFixed problem with TICK, but now only works when compiled.
Tim Vaughan [Sat, 30 Apr 2016 12:23:39 +0000 (00:23 +1200)]
Fixed problem with TICK, but now only works when compiled.

8 years agoWorking on decompilation.
Tim Vaughan [Sat, 30 Apr 2016 01:43:45 +0000 (13:43 +1200)]
Working on decompilation.

8 years agoAdded string words to library.
Tim Vaughan [Fri, 29 Apr 2016 00:50:55 +0000 (12:50 +1200)]
Added string words to library.

8 years agoFixed 2swap bug, added ?do, fixed +loop.
Tim Vaughan [Thu, 28 Apr 2016 12:28:15 +0000 (00:28 +1200)]
Fixed 2swap bug, added ?do, fixed +loop.

Also, Mandelbrot Set example now works.

8 years agoFixing up example.
Tim Vaughan [Wed, 27 Apr 2016 20:42:32 +0000 (08:42 +1200)]
Fixing up example.

8 years agoFixed >scaled in example.
Tim Vaughan [Wed, 27 Apr 2016 06:13:24 +0000 (18:13 +1200)]
Fixed >scaled in example.

8 years agoAdded J.
Tim Vaughan [Wed, 27 Apr 2016 05:42:01 +0000 (17:42 +1200)]
Added J.

8 years agoFixed */ def, added fixed point arithmetic to example.
Tim Vaughan [Wed, 27 Apr 2016 00:25:53 +0000 (12:25 +1200)]
Fixed */ def, added fixed point arithmetic to example.

8 years agoFixed bugs in c*, cmagsq
Tim Vaughan [Tue, 26 Apr 2016 21:09:46 +0000 (09:09 +1200)]
Fixed bugs in c*, cmagsq

8 years agoStacks cleared on error.
Tim Vaughan [Tue, 26 Apr 2016 21:05:46 +0000 (09:05 +1200)]
Stacks cleared on error.

8 years agoFinished ROLL
Tim Vaughan [Tue, 26 Apr 2016 21:01:56 +0000 (09:01 +1200)]
Finished ROLL

8 years agoLOOP+ -> +LOOP, LEAVE? -> ?LEAVE
Tim Vaughan [Tue, 26 Apr 2016 20:30:12 +0000 (08:30 +1200)]
LOOP+ -> +LOOP, LEAVE? -> ?LEAVE

8 years agoWorking on ROLL, redefined SPACES
Tim Vaughan [Tue, 26 Apr 2016 19:38:43 +0000 (07:38 +1200)]
Working on ROLL, redefined SPACES

8 years agoFixed ROT/-ROT, added LEAVE? and LOOP+
Tim Vaughan [Tue, 26 Apr 2016 19:25:41 +0000 (07:25 +1200)]
Fixed ROT/-ROT, added LEAVE? and LOOP+

8 years agoDO LOOP LEAVE working
Tim Vaughan [Tue, 26 Apr 2016 12:16:47 +0000 (00:16 +1200)]
DO LOOP LEAVE working

rot/-rot bug is present!! Too tired to fix now.

8 years agoAdded MAX and MIN
Tim Vaughan [Tue, 26 Apr 2016 09:58:42 +0000 (21:58 +1200)]
Added MAX and MIN

8 years agoAdded 2* and 2/ arithmetic bit shift words.
Tim Vaughan [Tue, 26 Apr 2016 09:37:48 +0000 (21:37 +1200)]
Added 2* and 2/ arithmetic bit shift words.

8 years agoAdded LOOP+ and expressed LOOP as a special case.
Tim Vaughan [Tue, 26 Apr 2016 09:33:11 +0000 (21:33 +1200)]
Added LOOP+ and expressed LOOP as a special case.

8 years agoFixed broken DO LOOP
Tim Vaughan [Tue, 26 Apr 2016 09:20:21 +0000 (21:20 +1200)]
Fixed broken DO LOOP

8 years agoWorking on LEAVE and example.
Tim Vaughan [Tue, 26 Apr 2016 08:48:23 +0000 (20:48 +1200)]
Working on LEAVE and example.

8 years agoAdded DO WHILE REPEAT, as well as . and .s
Tim Vaughan [Mon, 25 Apr 2016 11:14:44 +0000 (23:14 +1200)]
Added DO WHILE REPEAT, as well as . and .s

. and .s are now compiled from source, not
primitives!

8 years agoMostly copy-pasting forth code at this point!
Tim Vaughan [Sun, 24 Apr 2016 13:08:44 +0000 (01:08 +1200)]
Mostly copy-pasting forth code at this point!

8 years agoHit on working TICK implementation.
Tim Vaughan [Sun, 24 Apr 2016 12:10:55 +0000 (00:10 +1200)]
Hit on working TICK implementation.

8 years agoExposed debug functions as forth words.
Tim Vaughan [Sun, 24 Apr 2016 07:37:45 +0000 (19:37 +1200)]
Exposed debug functions as forth words.

8 years agoSensible recovery from stack underflows.
Tim Vaughan [Sun, 24 Apr 2016 07:24:21 +0000 (19:24 +1200)]
Sensible recovery from stack underflows.

8 years agoPropper EOF handling.
Tim Vaughan [Sun, 24 Apr 2016 05:05:41 +0000 (17:05 +1200)]
Propper EOF handling.

8 years agoAdding core forth words.
Tim Vaughan [Sun, 24 Apr 2016 02:28:42 +0000 (14:28 +1200)]
Adding core forth words.

8 years agoadded INCLUDE - can now write pure forth!
Tim Vaughan [Sun, 24 Apr 2016 01:42:01 +0000 (13:42 +1200)]
added INCLUDE - can now write pure forth!

8 years agoIt's alive!
Tim Vaughan [Sun, 24 Apr 2016 00:33:10 +0000 (12:33 +1200)]
It's alive!

8 years agoDebugging DOCOL
Tim Vaughan [Sat, 23 Apr 2016 12:37:58 +0000 (00:37 +1200)]
Debugging DOCOL

8 years agoNL only prints "ok" in state 0
Tim Vaughan [Sat, 23 Apr 2016 11:29:18 +0000 (23:29 +1200)]
NL only prints "ok" in state 0

8 years agoadded BYE and NL
Tim Vaughan [Sat, 23 Apr 2016 10:49:33 +0000 (22:49 +1200)]
added BYE and NL

8 years agoInterpreter almost works!!!
Tim Vaughan [Sat, 23 Apr 2016 02:11:24 +0000 (14:11 +1200)]
Interpreter almost works!!!

8 years agoAdded CHAR and EXECUTE
Tim Vaughan [Sat, 23 Apr 2016 02:02:37 +0000 (14:02 +1200)]
Added CHAR and EXECUTE