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

Closed
remko opened this issue May 27, 2018 · 3 comments
Closed

Implement all ANS core words #4

remko opened this issue May 27, 2018 · 3 comments
Milestone

Comments

@remko
Copy link
Owner

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

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.

@remko
Copy link
Owner Author

remko commented May 1, 2022

All words are now implemented. There's still one failing test in the core testsuite that is blocking this issue to be closed. I'll address that soon.

@remko
Copy link
Owner Author

remko commented May 7, 2022

All core word tests from the standard test suite pass. Closing this issue.

@remko remko closed this as completed May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants