diff --git a/cli/Arguments.fs b/cli/Arguments.fs index a85ad4d..f333c23 100644 --- a/cli/Arguments.fs +++ b/cli/Arguments.fs @@ -1,6 +1,7 @@ module TinyFS.Cli.Arguments open Argu +open System.IO open Wasmtime open TinyFS.Core @@ -51,7 +52,7 @@ let compileFile (filename: string) = let name = System.IO.Path.GetFileNameWithoutExtension filename let fileInfo = new System.IO.FileInfo(filename) let directory = fileInfo.DirectoryName - let wasmFilename = $"{directory}\{name}.wasm" + let wasmFilename = $"{directory}{Path.DirectorySeparatorChar}{name}.wasm" let wasmBytes = EndToEnd.compile fileText |> List.toArray diff --git a/cli/TinyFS.Cli.fsproj b/cli/TinyFS.Cli.fsproj index cded51c..b406515 100644 --- a/cli/TinyFS.Cli.fsproj +++ b/cli/TinyFS.Cli.fsproj @@ -8,7 +8,7 @@ true TinyFS.Cli TinyFS.Cli - 0.0.2 + 0.0.3-beta Morgan Kenyon A Cli for compiling and running F# files into WebAssembly. A Cli for compiling and running F# files into WebAssembly. diff --git a/examples/division.fs b/examples/division.fs new file mode 100644 index 0000000..295edc9 --- /dev/null +++ b/examples/division.fs @@ -0,0 +1,4 @@ +module Test + +let main () = + 10 / 2 diff --git a/examples/multiplication.fs b/examples/multiplication.fs new file mode 100644 index 0000000..e1c0f8c --- /dev/null +++ b/examples/multiplication.fs @@ -0,0 +1,4 @@ +module Test + +let main () = + 10 * 2 diff --git a/src/TinyFS.Core.fsproj b/src/TinyFS.Core.fsproj index 7fba502..612a0fa 100644 --- a/src/TinyFS.Core.fsproj +++ b/src/TinyFS.Core.fsproj @@ -5,7 +5,7 @@ true TinyFS.Core TinyFS.Core - 0.0.2 + 0.0.3-beta Morgan Kenyon A F# to Wasm Compiler. A F# to Wasm Compiler.