Skip to content

Add .S to core words #15

Open
Open
@MaxBarraclough

Description

@MaxBarraclough

The .S word is defined in calc.f as:

: .S
 ." STACK: "
  DEPTH 15 AND DUP
  IF DUP 0 DO DUP PICK U. 1- LOOP DROP
  ELSE DROP ." <EMPTY>" THEN CR
;

This works nicely, I suggest it be made available 'out of the box', as it's convenient for interactive use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions