-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from kmyk/develop
v5.0.3.0
- Loading branch information
Showing
62 changed files
with
2,893 additions
and
1,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
set -ex | ||
for f in examples/*.in ; do | ||
diff <(stack --system-ghc run execute ${f%.in}.py < $f) ${f%.in}.out | ||
diff <(stack --system-ghc run -- execute --target rpython ${f%.in}.py < $f) ${f%.in}.out | ||
diff <(stack --system-ghc run -- execute --target core ${f%.in}.py < $f) ${f%.in}.out | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: Jikka | ||
version: 5.0.2.0 | ||
version: 5.0.3.0 | ||
github: "kmyk/Jikka" | ||
license: Apache | ||
author: "Kimiyuki Onaka" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{-# LANGUAGE FlexibleContexts #-} | ||
|
||
module Jikka.CPlusPlus.Convert | ||
( run, | ||
) | ||
where | ||
|
||
import qualified Jikka.CPlusPlus.Convert.FromCore as FromCore | ||
import qualified Jikka.CPlusPlus.Language.Expr as Y | ||
import Jikka.Common.Alpha | ||
import Jikka.Common.Error | ||
import qualified Jikka.Core.Convert.ANormal as ANormal | ||
import qualified Jikka.Core.Language.Expr as X | ||
|
||
run :: (MonadAlpha m, MonadError Error m) => X.Program -> m Y.Program | ||
run prog = do | ||
prog <- ANormal.run prog | ||
FromCore.run prog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.