{"id":19552214,"url":"https://github.com/simonewebdesign/slfe","last_synced_at":"2026-05-17T19:06:10.582Z","repository":{"id":147912786,"uuid":"71635439","full_name":"simonewebdesign/slfe","owner":"simonewebdesign","description":"🍭 Sh***y Lisp Flavoured Erlang (LFE)","archived":false,"fork":false,"pushed_at":"2017-06-21T09:44:54.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-05T14:32:43.557Z","etag":null,"topics":["bytecode","compiler","elixir","erlang","interpreter","language","lfe","lisp","parser"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonewebdesign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-10-22T11:41:11.000Z","updated_at":"2023-07-26T20:48:45.000Z","dependencies_parsed_at":"2023-05-27T22:00:30.764Z","dependency_job_id":null,"html_url":"https://github.com/simonewebdesign/slfe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonewebdesign/slfe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonewebdesign%2Fslfe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonewebdesign%2Fslfe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonewebdesign%2Fslfe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonewebdesign%2Fslfe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonewebdesign","download_url":"https://codeload.github.com/simonewebdesign/slfe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonewebdesign%2Fslfe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bytecode","compiler","elixir","erlang","interpreter","language","lfe","lisp","parser"],"created_at":"2024-11-11T04:17:17.855Z","updated_at":"2026-05-17T19:06:10.577Z","avatar_url":"https://github.com/simonewebdesign.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SLFE [![Build Status](https://travis-ci.org/simonewebdesign/slfe.svg?branch=master)](https://travis-ci.org/simonewebdesign/slfe) [![Coverage Status](https://coveralls.io/repos/github/simonewebdesign/slfe/badge.svg?branch=master)](https://coveralls.io/github/simonewebdesign/slfe?branch=master)\n\n**SLFE** stands for **S**hitty [**LFE**](http://lfe.io/) ([LISP](https://www.common-lisp.net/)-flavoured [Erlang](http://www.erlang.org/)).\n\nIt's a new programming language based on [Elixir](https://github.com/elixir-lang/elixir) which aims to support all of the [`Enum`](http://elixir-lang.org/docs/stable/elixir/Enum.html) functionality.\n\n## Overview\n\n### The big picture\n\nThe `slfec` compiler is a program that takes a `foo.sl` source file and produces a `foo` executable binary.\n\nThe `isl` REPL is an executable interactive program/environment (like Ruby's `irb` and Elixir's `iex`) for `.sl` programs.\n\nThese tools do not exist yet, but that's how you would ideally use SLFE.\n\n#### To-do list\n\n- [x] Booleans\n- [x] UTF-8 Strings\n- [x] Integers\n- [ ] Floats\n- [x] Multiple statements\n- [x] `if` expressions\n- [x] Equality checks with `==` and `/=`\n- [x] Functions\n- [x] Math operators (`+`, `-`, `*`, `/`)\n- [x] Linked lists\n\n### Code walk-through\n\nThis project is currently composed of 4 files:\n\n#### Erlang\n\n- src/lisp_lexer.xrl - Lexical analyzer generator\n- src/lisp_parser.yrl - LALR-1 Parser Generator\n\n#### Elixir\n\n- lib/lisp_parser.ex - Layer on top of `:lisp_lexer` and `:lisp_parser`\n- lib/lisp_evaluator.ex - Evaluates s-expressions and writes to stdio. Ideally the two things should be decoupled.\n\n### Running the test suite\n\nYou can do so by running `mix test` from the command line.\n\n    $ mix test\n    ............................\n\n    Finished in 0.07 seconds\n    28 tests, 0 failures\n\n\n## FAQ\n\n\u003cdetails\u003e\n  \u003csummary\u003eShould I use this?\u003c/summary\u003e\n\nProbably not. This is actually just an experiment, so I wouldn't recommend people using it to build actual programs. But feel free to use it anyway if you want.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eWhy Erlang/Elixir?\u003c/summary\u003e\n\n[`leex`](http://erlang.org/doc/man/leex.html) and [`yecc`](http://erlang.org/doc/man/yecc.html) are the powerful Erlang alternatives to [`lex`](http://en.wikipedia.org/wiki/Lex_(software)) and [`yacc`](https://en.wikipedia.org/wiki/Yacc). I like Erlang, and Elixir is pretty rad too. So why not?\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eIs SLFE a Turing-complete language?\u003c/summary\u003e\n\nYeah, I guess.\n\u003c/details\u003e\n\n---\n\n**SLFE** was inspired by [this blog post](http://andrealeopardi.com/posts/tokenizing-and-parsing-in-elixir-using-leex-and-yecc/) (thanks Andrea!).\n\nKudos to [lpil](https://github.com/lpil) for the name suggestion and for being awesome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonewebdesign%2Fslfe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonewebdesign%2Fslfe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonewebdesign%2Fslfe/lists"}