lxlang
Version, currently master branch1 version
- master branchlatestMay 8, 2022
github.com/SleepingInsomniac/LxLang
The Lx programming Language
Installation
# Add this to your shard.yml
dependencies:
lxlang:
github: SleepingInsomniac/LxLang
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.3.2- License
- MIT
- Author
- Alex Clink
- Target
lxlangfrom src/lxlang.cr
Dependencies
This version declares no dependencies.
README
LxLang
LxLang is a programing language. lx = Alex
Why?
For my own curiosity
Syntax:
Assignment:
Variables start with a lowercase letter and may contain upper and lower case letters, numbers, and underscores:
my_variable = 42 : Int8
Constants can only contain uppercase letters, numbers, and underscores:
MY_CONTSTANT = 42 : Int8
Blocks
Blocks are sections of code that create a new scope, they also inherit the parent scope:
{
# ...
}
Blocks can be assigned to variables:
my_block = {}
Blocks can define parameters:
my_block = { in x : Int8 }
...and define return types:
pass_through = { in x : Int8, out Int8
return x
}
Blocks can also invoke methods
add = { in x : Int8, y : Int8 out Int8 ret x + y }
add(1, 2) # => 3
Contributors
- Alex Clink - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- May 8, 2022
- Crystal
1.3.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/SleepingInsomniac/LxLang
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1