Code Monkey home page Code Monkey logo

forthkit's Introduction

  • gcc forth.c -o forth
  • ./forth -c eforth.forth
  • cat bottles.forth | ./forth -i eforth.img

$ ./forth -i eforth.img

OK. WORDS

SAVEVM FPUTS FGET FPUT CLOSE OPEN FILE WORDS .S PICK DEPTH SP@ BYE QUIT OK EVAL eval $COMPILE $INTERPRET NUMBER? &gt;NUMBER /STRING DIGIT? QUERY EXPECT ACCEPT KTAP TAP CR s" $" $"| .( ." $," ."| do$ DU. DU.R ? . U. D. .R U.R D.R S.R #> SIGN #S # HOLD <# DIGIT >CHAR CHARS CHAR+ CHAR- OCTAL BINARY HEX DECIMAL PAD SPACES SPACE 2VARIABLE 2CONSTANT 2LITERAL VARIABLE CONSTANT DOES> DOES CREATE doVAR RECURSE ; : $,n OVERT :NONAME ( [CHAR] POSTPONE ['] ! ' find SAME? DATA&gt; TYPE&gt; CODE&gt; LINK&gt; TOKEN WORD PACK$ -TRAILING FILL CMOVE COUNT KEY ?KEY ?RX TYPE EMIT TX! CHAR PARSE parse ALIGNED D2/ DU2/ D2* MU/MOD 2/ 2* / /MOD M * UM / MOD /MOD M/MOD UM/MOD WITHIN UMAX UMIN MAX MIN M- M+ DMAX DMIN DU< D< D= D0= D0> D0< <> 0= 0<> 0> > < = U> U< DABS ABS S>D ?DUP 2@ 2! D- DNEGATE D+ 2- 2+ 1- 1+ - NEGATE XNOR XOR NOR OR AND NOT 2TUCK 2NIP -2ROT 2ROT 2OVER 2SWAP 2DUP 2DROP 2R@ 2R> 2>R TUCK NIP -ROT ROT \ TIB #TIB R@ @EXECUTE EXECUTE WHILE ELSE AFT REPEAT AHEAD UNTIL AGAIN BEGIN NEXT FOR THEN IF ] [ LITERAL STATE? COMPILE +! C, , ALLOT HERE IMMEDIATE =WORDLIST =IMMED BS BL FALSE TRUE RPP SPP STATE LAST NP CP CURRENT CONTEXT HANDLER HLD 'NUMBER 'EVAL CSP TIBB #TIBB >IN SPAN tmp BASE 'PROMPT 'ECHO 'TAP 'EXPECT 'EMIT '?KEY RP0 SP0 DPL FORTH BOOT CELL CELL- CELL+ CELLS + C! C@ F_CLOSE F_OPEN GETC PUTC 0BRANCH BRANCH next R> >R 0< NAND UM+ DUP SWAP OVER DROP ! @ EXIT LIT HALT NOP ; :

OK.

forthkit's People

Contributors

eszartek avatar tehologist avatar

Watchers

 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.