Functional Programming Language
A compiler for my small functional language.
Written in python with SLY lexer/parser generator library.
Requirements
- python
- SLY
How to Run
First, install dependencies with pip:
python3 -m pip install -r requirements.txt
Then enter this command to run compiler:
python3 main.py <SOURCE>
# Example:
python3 main.py examples/sum
Examples
Hello World:
main = "Hello, World!";