- Python 3.11 or newer
pip install -r requirements.txt- For compiled mode:
llvmandclang(optional, for native code generation)
git clone https://github.com/Zajfan/NLPL
cd NexusLang
pip install -r requirements.txt# Interpreter mode (recommended for development)
PYTHONPATH=src python -m nexuslang.main my_program.nlpl
# With type checking disabled (faster)
PYTHONPATH=src python -m nexuslang.main --no-type-check my_program.nlplPYTHONPATH=src python -m nexuslang.repl# Hello world
PYTHONPATH=src python -m nexuslang.main examples/01_basics/01_basic_concepts.nlpl
# Data analysis showcase
PYTHONPATH=src python -m nexuslang.main showcase/data_processor/analyze.nlpl
# Source code analyzer
PYTHONPATH=src python -m nexuslang.main showcase/source_analyzer/analyze.nlplpip install pytest pytest-timeout
PYTHONPATH=src python -m pytest tests/- Install the extension from
vscode-extension/ - The LSP server starts automatically when you open a
.nlplfile
See editors/neovim/ and editors/emacs/ for configuration files.
PYTHONPATH=src python -m nexuslang.lsp --stdioInstall LLVM and clang, then:
PYTHONPATH=src python -m nexuslang.main --compile my_program.nlplThis emits LLVM IR, compiles to native code, and runs the binary.
- See
docs/guide/for language documentation - See
docs/tutorials/for step-by-step tutorials - See
docs/reference/for the language specification