New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement all ANS core words #4

Open
remko opened this Issue May 27, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@remko
Copy link
Owner

remko commented May 27, 2018

Implement all ANS Core words

  • !
  • #
  • #>
  • #S
  • '
  • (
  • *
  • */
  • */MOD
  • +
  • +!
  • +LOOP
  • ,
  • -
  • .
  • ."
  • /
  • /MOD
  • 0<
  • 0=
  • 1+
  • 1-
  • 2!
  • 2*
  • 2/
  • 2@
  • 2DROP
  • 2DUP
  • 2OVER
  • 2SWAP
  • :
  • ;
  • <
  • <#
  • =
  • >
  • >BODY
  • >IN
  • >NUMBER
  • >R
  • ?DUP
  • @
  • ABORT
  • ABORT"
  • ABS
  • ACCEPT
  • ALIGN
  • ALIGNED
  • ALLOT
  • AND
  • BASE
  • BEGIN
  • BL
  • C!
  • C,
  • C@
  • CELL+
  • CELLS
  • CHAR
  • CHAR+
  • CHARS
  • CONSTANT
  • COUNT
  • CR
  • CREATE
  • DECIMAL
  • DEPTH
  • DO
  • DOES>
  • DROP
  • DUP
  • ELSE
  • EMIT
  • ENVIRONMENT
  • EVALUATE
  • EXECUTE
  • EXIT
  • FILL
  • FIND
  • FM/MOD
  • HERE
  • HOLD
  • I
  • IF
  • IMMEDIATE
  • INVERT
  • J
  • KEY
  • LEAVE
  • LITERAL
  • LOOP
  • LSHIFT
  • M*
  • MAX
  • MIN
  • MOD
  • MOVE
  • NEGATE
  • OR
  • OVER
  • POSTPONE
  • QUIT
  • R>
  • R@
  • RECURSE
  • REPEAT
  • ROT
  • RSHIFT
  • S"
  • S>D
  • SIGN
  • SM/REM
  • SOURCE
  • SPACE
  • SPACES
  • STATE
  • SWAP
  • THEN
  • TYPE
  • U.
  • U<
  • UM*
  • UM/MOD
  • UNLOOP
  • UNTIL
  • VARIABLE
  • WHILE
  • WORD
  • XOR
  • [
  • [']
  • [CHAR]
  • ]

@remko remko added this to the 1.0 milestone May 30, 2018

@albertvanderhorst

This comment has been minimized.

Copy link

albertvanderhorst commented Oct 4, 2018

If . is implemented without resort to <# etc. and without resort to double precision words, it may be of dubious value to implement those.

ENVIRONMENT can be left out; it is a candidate for obsolescence and almost never used.

All double precision operators are in core just because they were thought needed for number output that was 32 bits in the 16 bit era.
With those missing implementing >NUMBER may have a very bad cost versus benefit ratio.

What with QUIT ? There must be some read-evaluate-print-loop somewhere. Just call it QUIT and you're done.
So my plea is for a loadable extension, not extending the core itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment