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
class ast_node {}; | |
class retrn : public ast_node { | |
retrn(vector<expr *>); | |
} | |
class expr : public ast_node {}; | |
class intconst : public expr {}; |
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
module LangParser(parseGrammar, Token(..), Result(..)) where | |
import Control.Applicative | |
import Control.Monad | |
--import Debug.Trace | |
data Token = | |
Return | | |
Simple Char | | |
OctalConst String | |
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
{-# LANGUAGE BangPatterns #-} | |
module Main where | |
import qualified Data.ByteString.Lazy.Char8 as BS | |
import Data.IntMap as M | |
import Data.Maybe | |
import Data.Bits | |
import Data.Char | |
import Debug.Trace |
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
{-# LANGUAGE BangPatterns #-} | |
module Main where | |
import qualified Data.ByteString.Lazy.Char8 as BS | |
import qualified Data.IntMap as M | |
import Data.Maybe | |
import Data.Bits | |
import Data.Char | |
import System.Environment | |
import Text.Printf |
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
{-# LANGUAGE BangPatterns #-} | |
module Main where | |
import qualified Data.ByteString.Lazy.Char8 as BS | |
import qualified Data.IntMap as M | |
import Data.Maybe | |
import Data.Bits | |
import Data.Char | |
import System.Environment | |
import Text.Printf |
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
module Main where | |
import KwHen | |
import YBus | |
import Network | |
import Data.Word | |
import Control.Concurrent | |
import Control.Concurrent.STM | |
import Control.Monad |
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
{-# LANGUAGE BangPatterns #-} | |
module Main where | |
import Data.Functor | |
import Data.Maybe | |
import Data.Vector ((//), (!)) | |
import Control.Monad | |
import qualified Data.Vector as V | |
import Debug.Trace |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
const int infinity = 2147483647; | |
struct edge_t { | |
int v1; | |
int v2; | |
int cost; |
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
{-# Language BangPatterns #-} | |
module Main where | |
import Data.Binary.Get | |
import Data.Word | |
import Data.Bits | |
import Data.List (foldl') | |
import Test.BenchPress | |
import Control.Monad | |
import qualified Data.ByteString.Lazy as BS |
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
[1 of 1] Compiling Test ( Test.hs, Test.o ) | |
Test.hs:17:10: | |
Illegal instance declaration for `Heap (CacheHeap h) a' | |
(the Coverage Condition fails for one of the functional dependencies; | |
Use -XUndecidableInstances to permit this) | |
In the instance declaration for `Heap (CacheHeap h) a' |