Skip to content

Commit

Permalink
add SOURCE-ID
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Oct 28, 2023
1 parent 97a590f commit 6bd7338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Alee Forth uses the [Forth 2012 test suite](https://github.com/gerryjackson/fort
**Missing** core extension words:

```
PARSE-NAME REFILL RESTORE-INPUT S\" SAVE-INPUT SOURCE-ID
PARSE-NAME REFILL RESTORE-INPUT S\" SAVE-INPUT
```

## Building
Expand Down
1 change: 1 addition & 0 deletions forth/core-ext.fth
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@
rot dup >r c! r> char+ swap repeat
2drop r> tuck - ;

: source-id _source @ _begin < if 0 else -1 then ;

0 comments on commit 6bd7338

Please sign in to comment.