A programming language with a funny name
Project description
3LANG ♪♪
A programming language with a silly name
I saw recently the amazing movie La La Land and inspired by only the movie's name and my learning obsession I decided to learn how to make a programming language and give it a funny name 🙂.
Warning: This shouldn't be used in any production enviroment, it is very slow and poorly designed, it was made with educational purposes only.
Installation
The only requirement is to have Python 3.9+ (you can install it directly or with pyenv).
You can install with pip:
$ pip install lalalang
Or by source
$ git clone https://github.com/manoloesparta/lalalang && cd alalang
$ make setup env=python # Here goes the path of your python 3.9 executable
$ make install
Info: If the terminal returns command not found: 3lang
you should see where pip is installing your package and add that directory to PATH, sometimes using sudo
with pip solves it, or adding the --user
flag, if none of these options works can still use the interpreter with the command python -m lalalang
.
Usage
You can see the main options with this command
$ 3lang --help
Usage: 3lang [OPTIONS]
Options:
--mode TEXT REPL mode (lex|parse|eval)
--src TEXT Input file with 3lang code
--help Show this message and exit.
To enter the interpreter and run code on the fly, type
$ 3lang
Welcome to the city of stars!🌟
This is the La La Lang Programming Languag v0.3!
♪♪ >
To read a file and execute it, type
$ 3lang --src random_program.3la
You can enter other in the stages of lexing and parsing of the interpreter with the --mode
flag.
Syntax
Coming soon...
See the examples directory to get a wider idea.
License
This project is under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.