summaryrefslogtreecommitdiff
path: root/tnslc/run.ps1
blob: 620673d1eb18d1b7a1f2a78407cee0a3d6d3bfcf (plain)
1
2
3
4
5
6
7
8
if ($args.Length -gt 0) {
    ..\tint.exe -flags "$args" -in tnslc.tnsl
    nasm -f win64 -o "$($args[0]).obj" "$($args[0]).asm"
    gcc -o "$($args[0]).exe" "$($args[0]).obj"
} else {
    Write-Host "Usage: run [file to compile]";
    Write-Host "";
}