Yaksha Programming Language
Show HN: YakshaLisp – Macros for Yaksha and Lisp Dialect
Based, Yaksha Programming Language works in show hn launch.
Profile
YakshaLisp is a sub-language embedded in Yaksha compiler.Allowing you to do things like below (fizzbuzz). macros!{ (defun to_fb (n) (+ (if (== n 1) "" " ") (cond ((== 0 (modulo n 15)) "FizzBuzz") ((== 0 (modulo n 3)) "Fizz") ((== 0 (modulo n 5)) "Buzz") (true (to_string n)) ))) (defun fizzbuzz () (list (yk_create_token YK_TOKEN_STRING (reduce + (map to_fb (range 1 101)))))) (yk_register {dsl fizzbuzz fizzbuzz}) } def main() -> int: println(fizzbuzz!{}) return 0 This is available in latest release - https://github.com/YakshaLang/Yaksha/releases/tag/v0.0.4 (I recommend using release.py in compiler/scripts if you want to locally compile it)Few more examples:- embedding a text file macros! { (de
Within the show hn launch space, the company focuses on its core offering rather than a broad product line.
It is recorded at the Show HN launch stage.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: yakshalang.github.io/documentation.html#macros-yakshalisp
Browse related
Create a free account