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
CPPFLAGS = -std=c++1z -fmodules-ts | |
ALL: main | |
main: speech.o main.cc | |
clang++ $(CPPFLAGS) -fprebuilt-module-path=. -o $@ $^ | |
speech.o: speech.pcm | |
clang++ $(CPPFLAGS) -o $@ -c $< |
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
#[derive(Debug)] | |
enum Expr { | |
Var { x: u32 }, | |
App { f: ExprRef, arg: ExprRef }, | |
Lam { body: ExprRef }, | |
} | |
use Expr::*; | |
#[derive(Debug, Copy, Clone)] |
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
require 'csv' | |
require 'set' | |
module Tokile | |
YELLOW = "\x1b[33m" | |
GREEN = "\x1b[32m" | |
CLEAR = "\x1b[39m" | |
UP = "\033[F" |
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 OverloadedStrings #-} | |
module Main where | |
import Control.Applicative ((<|>)) | |
import qualified Data.SCargot as SCargot | |
import qualified Data.SCargot.Language.Basic as SCargot | |
import Data.SCargot.Repr.Basic | |
import Data.Text (Text) | |
import qualified Text.Parsec as Parsec |
OlderNewer