Play

Check-in [874da70254]
Login
Overview
Comment:Remove debug statement.
Timelines: family | ancestors | descendants | both | cli
Files: files | file ages | folders
SHA3-256: 874da70254c2036db793cb64b293762da9b41c64f8ee881a6addcb10bb18a59e
User & Date: robin.hansen on 2021-04-03 07:56:32
Other Links: branch diff | manifest | tags
Context
2021-04-06
08:02
Added cli command for executing a function. Missing elm-side implementation. check-in: 0075328824 user: robin.hansen tags: cli
2021-04-03
07:56
Remove debug statement. check-in: 874da70254 user: robin.hansen tags: cli
07:29
Fixed bug when parsing words which could result in two words being interpreted as one. check-in: ec17f65074 user: robin.hansen tags: cli
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified src/CLI.elm from [11905a4a5e] to [65ae4b6f00].

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
                        updatedModel =
                            PackageLoader.update packageLoaderMsg model
                    in
                    case updatedModel of
                        PackageLoader.Done qualifiedAst ->
                            let
                                compilationResult =
                                    case TypeChecker.run (Debug.log "ast" qualifiedAst) of
                                        Err typeErrors ->
                                            formatErrors (TypeCheckerProblem.toString "") typeErrors

                                        Ok typedAst ->
                                            Codegen.codegen typedAst
                                                |> Result.mapError (always "compfail")
                                                |> Result.map Wasm.toString







|







57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
                        updatedModel =
                            PackageLoader.update packageLoaderMsg model
                    in
                    case updatedModel of
                        PackageLoader.Done qualifiedAst ->
                            let
                                compilationResult =
                                    case TypeChecker.run qualifiedAst of
                                        Err typeErrors ->
                                            formatErrors (TypeCheckerProblem.toString "") typeErrors

                                        Ok typedAst ->
                                            Codegen.codegen typedAst
                                                |> Result.mapError (always "compfail")
                                                |> Result.map Wasm.toString