Skip to content

A fork of yourforth converted to use the Shavian alphabet

Notifications You must be signed in to change notification settings

yttyx/yourforth-shavian

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

41 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

README.md

A fork of Albert van der Horst's yourforth project converted to use the Shavian alphabet.

Note: this is a work in progress.

Building yourforth

Install fasm (the flat assembler) and rlwrap.

For example, in Arch linux:

sudo pacman -S fasm
sudo pacman -S rlwrap

Then:

fasm yourforth.fas

Running yourforth

./run
  • Press Enter to see the ๐‘ด๐‘’๐‘ฑ prompt.
  • Type ๐‘ข๐‘ป๐‘›๐‘Ÿ Enter to see the list of supported words.

rlwrap is used to show previous commands while in yourforth (press CursorUp).

Only one example program has so far been converted to Shavian: bench.fs, which contains the definition of the word ๐‘›๐‘ต-๐‘๐‘ฎ๐‘ฒ๐‘ฅ-๐‘ฒ๐‘•๐‘ด. To add the word to the yourforth dictionary:

๐‘ฆ๐‘ฏ๐‘’๐‘ค๐‘ต๐‘› ./examples/bench.fs

Then run the word:

๐‘›๐‘ต-๐‘๐‘ฎ๐‘ฒ๐‘ฅ-๐‘ฒ๐‘•๐‘ด

A list of prime numbers up to 101 should be displayed. The word ๐‘›๐‘ต-๐‘๐‘ฎ๐‘ฒ๐‘ฅ-๐‘ฒ๐‘•๐‘ด puts the number of primes found on the stack. Remove the top value on the stack and display it using the word .:

.

The value 26 should be displayed.

Screenshots

Running yourforth and executing the word ๐‘ข๐‘ป๐‘›๐‘Ÿ:

List of yourforth words

The bench.fs example program: bench.fs

Using bench.fs: Run ๐‘›๐‘ต-๐‘๐‘ฎ๐‘ฒ๐‘ฅ-๐‘ฒ๐‘•

About

A fork of yourforth converted to use the Shavian alphabet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Forth 99.9%
  • Shell 0.1%