sharp 0.1.0

A modern, statically-typed programming language with Python-like syntax, compiled to native code via LLVM. Game engine ready!
class Sharp < Formula
  desc "A modern, statically-typed programming language with Python-like syntax"
  homepage "https://github.com/yourusername/sharp"
  url "https://github.com/yourusername/sharp/archive/refs/tags/v0.1.0.tar.gz"
  sha256 "YOUR_SHA256_HERE"
  license "MIT"

  depends_on "rust" => :build
  depends_on "llvm@18"

  def install
    llvm = Formula["llvm@18"]
    ENV["LLVM_SYS_180_PREFIX"] = llvm.prefix

    system "cargo", "install", "--locked", "--root", prefix, "--path", "."
  end

  test do
    (testpath/"test.shrp").write <<~EOS
      def main() -> int {
        return 42
      }
    EOS

    system bin/"sharp", testpath/"test.shrp", "--check"
  end
end