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%