https://github.com/mnikander/langium-first-lambda
Create the grammar for a small functional language centered on lambda calculus
https://github.com/mnikander/langium-first-lambda
Last synced: 3 months ago
JSON representation
Create the grammar for a small functional language centered on lambda calculus
- Host: GitHub
- URL: https://github.com/mnikander/langium-first-lambda
- Owner: mnikander
- License: bsd-3-clause
- Created: 2024-12-24T09:13:16.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T17:35:01.000Z (5 months ago)
- Last Synced: 2025-01-20T18:27:45.321Z (5 months ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# First Lambda
This is a project to learn how to create a programming language.
The grammar is defined and then [Langium](https://langium.org/) is used to to create an abstract syntax tree (AST) and a VS Code extension with syntax hightlighting and auto-completion.
The language itself "First Lambda" is based on lambda calculus and intended to be a small and simple language.## Setup
1. Setup Langium on your machine: https://www.npmjs.com/package/langium
2. Clone this repo
3. Build using the task in vscode (or execute `npm run langium:generate && npm run build` in a terminal)
4. Run the resulting program in vscode, to start a new vscode window which has the extension for 'First Lambda' loaded
5. In this new vscode window, open a .fla file in the example/ directory to try out syntax highlighting and auto-completion