I came up with an idea for a programming language quite some time ago, and only recently I've actually sat down to make it happen.
FLIO: First/Last, In/Out.
This language is based off of a stack which can be pushed/popped from both ends.
FLIO code does most of its operations on that stack.
The instructions are case-insensitive, but [most of] the arguments are case-sensitive.
This language is mostly for fun, but it can be used to do a lot of practical things.
I am planning to upload a release very soon
Here's some example code, to give you an idea of what FLIO is like:
Code:
And the output:
Code:
FLIO: First/Last, In/Out.
This language is based off of a stack which can be pushed/popped from both ends.
FLIO code does most of its operations on that stack.
The instructions are case-insensitive, but [most of] the arguments are case-sensitive.
This language is mostly for fun, but it can be used to do a lot of practical things.
I am planning to upload a release very soon
Here's some example code, to give you an idea of what FLIO is like:
Code:
//Hello world example in "flio" by beckadamtheinventor
//make a variable and store a number to it
var version
fi 1.3
fo version
//push the label "hello" to the first stack
fi lbl-hello
//push the program counter plus one (ignoring comments) to the latter stack, then pop the first stack to the program counter
lpush 1
fret
//exit the interpreter
quit
lbl-hello
print "Hello World!"
//Initialize variable "I", push user input, then pop user input to "I"
var I
fi input-"What is your name?"
fo I
//push this string then concatenate other strings/numbers with 'fadd'
fi "Hello, "
fadd I
fadd "! Welcome to flio "
fadd version
fadd "!"
//pop to I and then print it
fo I
print I
//return from subroutine
lret
And the output:
Code:
Hello World!
What is your name?Beck
Hello, Beck! Welcome to flio 1.3!