Re: Lark - A surface syntax for Common Lisp
"Gerry Weaver (as gerryw at compvia dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Yuri, It was actually inspired by several languages. Lark isn't a standalone language that happens to compile to Lisp — it's a skin over Common Lisp. Every Lark construct maps directly to a CL form. fn is defun, struct is defstruct, |x| x * 2 is (lambda (x) (* x 2)), @(...) drops straight into s-expressions. You can call any CL function, use CFFI, define CLOS methods with typed dispatch, write macros with backquote templates. The FFI, the package system, the condition system, the type declarations — it's all CL exposed through a friendly syntax. Thanks. I appreciate your feedback. On 2/15/26 03:40, Yuri Davidovsky wrote: > Looks very lua-like, was the first thought that I had looking at it. But I wonder why you had to come up with your own syntax, rather than use lua syntax directly and compile it into lisp? Then you could avail of all the existing development tools for lua, syntax highlighting, refactoring, etc. saving you a lot of work building your own linters, formatters, all that (although I cannot vouch for the quality of those tools for lua as it is a minor language). _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html