Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 799 Bytes

File metadata and controls

40 lines (25 loc) · 799 Bytes

DeepLang

work in progress

DeepLang: A lightweight, experimental interpreter framework designed to explore core concepts in language frontend, intermediate representation (IR), analysis and transformation passes, and specialized architecture backends. 🚀


Setup

mkdir build && cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cmake --build .

./src/deeplang

Using pre-commit hook to format and tidy
  • lint-code.sh file contains the code to format and tidy the code.
  • .git/hooks/pre-commit file contains the code to run the script.
# .git/hooks/pre-commit

#!/bin/bash

# run lint-code.sh
sh lint-code.sh

echo "Pre-commit checks complete."

if(4>3){4;}elif(5>7){3;}else{4*3;}