Skip to content
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
Open

Implement all ANS core words #4

remko opened this issue May 27, 2018 · 1 comment
Milestone

Comments

@remko
Copy link
Owner

@remko remko commented May 27, 2018

Implement all ANS Core words

  • >NUMBER
  • WORD
  • M*
  • UM*
  • UM/MOD
  • FM/MOD
  • S>D
  • SM/REM
  • #
  • <#
  • #>
  • #S
  • HOLD
  • SIGN
  • ENVIRONMENT
  • QUIT
  • ABORT
  • ABORT"
  • ACCEPT
  • KEY
  • !
  • '
  • (
  • *
  • /
  • /MOD
  • +
  • +!
  • +LOOP
  • ,
  • -
  • .
  • ."
  • /
  • /MOD
  • 0<
  • 0=
  • 1+
  • 1-
  • 2!
  • 2
  • 2/
  • 2@
  • 2DROP
  • 2DUP
  • 2OVER
  • 2SWAP
  • :
  • ;
  • <
  • =
  • >
  • >BODY
  • >IN
  • >R
  • ?DUP
  • @
  • ABS
  • 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
  • EVALUATE
  • EXECUTE
  • EXIT
  • FILL
  • FIND
  • HERE
  • I
  • IF
  • IMMEDIATE
  • INVERT
  • J
  • LEAVE
  • LITERAL
  • LOOP
  • LSHIFT
  • MAX
  • MIN
  • MOD
  • MOVE
  • NEGATE
  • OR
  • OVER
  • POSTPONE
  • R>
  • R@
  • RECURSE
  • REPEAT
  • ROT
  • RSHIFT
  • S"
  • SOURCE
  • SPACE
  • SPACES
  • STATE
  • SWAP
  • THEN
  • TYPE
  • U.
  • U<
  • UNLOOP
  • UNTIL
  • VARIABLE
  • WHILE
  • XOR
  • [
  • [']
  • [CHAR]
  • ]
@remko remko added this to the 1.0 milestone May 30, 2018
@albertvanderhorst
Copy link

@albertvanderhorst 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants