open CircleLang open System.IO [] let main argv = if argv.Length <> 1 then printfn "Usage: dotnet run " exit 1 let ast_maybe = parse argv.[0] match ast_maybe with | Some ast -> let output = eval ast use sw = new StreamWriter("output.svg") sw.WriteLine(output) | None -> printfn "Invalid program." exit 1 0