Skip to content

Java built interpreter for the BareBones language designed by Brookshear

Notifications You must be signed in to change notification settings

bilaalrashid/BareBones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BareBones

Java built interpreter for the BareBones language designed by Brookshear

Usage

java Main test.bare

Additions

Comments

Comments can be achieved by using #, after which, the interpreter will ignore everything on that line.

Example:

clear X; # Sets X to 0

Comparators

Comparators can be used to evaluate boolean expression using:

  • is - equal to
  • not - not equal to
  • above - greater than (exclusive)
  • under - less than (exclusive)

Example:

while X is 0 do;

Example

Example program using the BareBones syntax. Results in X=0

# Example program that results in X=0

clear X;
incr X;
incr X;
incr X;
while X not 0 do;
   decr X;
end;

About

Java built interpreter for the BareBones language designed by Brookshear

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published