shlcpp (ShellLite) is a programming language which has pseudocode like syntax (sort of like COBOL, and AppleScript)
Developer's Note:- Hi I am Shrey :), I started ShellLite (shlcpp) after looking at kids struggle (in grade 11th cs, we just started with python at that time) with learning syntax in school, and from there my journey began, learning about how programming languages work, etc. that lead to me writing the initial prototype of ShellLite written in python... Since then it always bugged me that the performance for the language was pretty crap, so almost immediately after i was happy with the prototype and wanted to do some proper testing and benchmarks i began the work on shlcpp... and here we are today :)
to calculate_area(width, height)
give width * height
can greet(name)
show "Hello, " + name
say calculate_area(10, 5)
greet("Alice")
is_ready = false
unless is_ready
say "Not ready"
repeat 3 times
say "Looping..."
count = 0
until count == 3
count += 1
thing Counter
has value = 0
can increment(amount)
self.value = self.value + amount
c = make Counter(10)
c.increment(5)
say c.value
Requires CMake 3.15+ and a C++17 compiler.
Windows:
.\compile_shl.batLinux / macOS:
./install.shManual (CMake):
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release# REPL
shlcpp
# Run script
shlcpp script.shl
# Run inline code
shlcpp -e "say 'Hello!'"
# Check syntax
shlcpp check script.shl
# Compile to bytecode (.shbc)
shlcpp -c script.shl script.shbc
shlcpp script.shbcpytest tests/ -v- Language Specification
- Other Documentation WIP
GNU GPL v3 with Classpath Exception - see LICENSE.