Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

Swoosh

Swoosh is an interpreted dynamic procedural language that includes recursion and nested control statements. Its syntax was inspired from Pascal and I built it to learn more about interpreter design.

Swoosh supports two types: strings and numbers. Procedures start with the PROCEDURE keyword and have no return values (I know, pretty shocking but bear in mind that this was a learning project). All assignments are printed to the console and all procedure definitions must appear before the entry point of the program, which is denoted with the START keyword.

PROCEDURE factorial(a, b);
BEGIN
product = a*b;
if ( b > 1)
THEN
factorial(product, b-1);
END;

START
BEGIN
factorial(10, 9);
END
END

About

An interpreted dynamic programming language that includes recursion and nested control statements. Inspired from Pascal.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.