Lotus is a programming language I developed to explore the principles of statically-typed procedural languages, test-driven development, and software testing. With Lotus, you can write programs using familiar constructs like collections, dictionaries, and control structures, all parsed and interpreted through an interpreter written in C++.
Ensure you have the following installed:
git clone https://github.com/Multipixels/lotus-lang.git
cd lotus-lang/src
lotus-lang.sln
file in Visual Studio.lotus-interpreter-tests
tests.lotus-interpreter
project.Write Lotus programs in .lotus
files and run them through the interpreter. Here’s an example program:
-- Find the sum of the values in a collection
integer sum = 0;
collection<integer> myCollection = [2, 4, 6];
iterate(value : myCollection) {
sum = sum + myCollection;
}
log(sum);
Run the program:
./lotus-interpreter example.lotus
boolean
, integer
, float
, character
, and string
.if-else
, while
, for
, and more.