Skip to content

bichanna/Foray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Foray Programming Language

WARNING!! THIS LANGUAGE IS JUST A TOY.

I made the foray into Julia on the day 2022 started.

git clone https://github.com/bichanna/Foray.git
cd Foray/src

After that you can run your .fyy file.

julia Foray.jl test.fyy

Syntax

Note: Currently Foray only supports string.
Note: Make sure to add an extra line at the end of the file.
Note: Always place the start function at the top of the file

Print statement

Just a bit different with 'out'

start:
  printout "Hello World from Foray"

Variables

Similar to Python

start:
  variable = "Hello World from a variable"
  printout variable

Comment

Yay! Just like Python.

# printout "This won't be printed out"

Function(?)

🤔 Python without def

something:
  printout "Yay"

start:
  run something
  printout "This will be printed out after"

Exit the program

Easy poosy.

start:
  printout "Weee!"
  stop
  printout "This does not show up."