crylox
Version, currently main branch1 version
- main branchlatestDec 31, 2023
github.com/nobodywasishere/Crylox
No description declared in shard.yml.
1 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crylox:
github: nobodywasishere/Crylox
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
~> 1.9- License
- MIT
- Author
- Margret Riegert
- Target
cryloxfrom src/crylox/cli.cr
Dependencies
Development Dependencies
- ameba~> 1.4github: crystal-ameba/amebadev
README
crylox - crystal lox interpreter
TODO: Write a description here
Installation
TODO: Write installation instructions here
Usage
TODO: Write usage instructions here
Performance
Crystal:
def fib(n : Int32)
if n <= 1
n
else
fib(n - 2) + fib(n - 1)
end
end
start_time = (Time.utc - Time::UNIX_EPOCH).total_seconds
(0...20).each do |i|
fib(i)
end
puts (Time.utc - Time::UNIX_EPOCH).total_seconds - start_time
0.00013566017150878906
real 0m19.314s
user 0m18.572s
sys 0m0.597s
Crylox:
fun fib(n) {
if (n <= 1) return n;
fib(n - 2) + fib(n - 1);
}
var start_time = clock();
for (var i = 0; i < 20; i = i + 1) {
fib(i);
}
print (clock() - start_time);
0.7572522163391113
real 0m25.466s
user 0m24.641s
sys 0m0.662s
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/crylox/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Margret Riegert - 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
main- Seen
- Dec 31, 2023
- Crystal
~> 1.9- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/nobodywasishere/Crylox
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1