$ ./bin/coffee --js < a.coffee
Cannot read property 'args' of undefined
lazy = (x) -> () -> x | |
thaw = (x) -> x() | |
app = () -> [].slice.call(arguments, 0).reduce (x, y) -> () -> thaw(x)(y) | |
S = (x) -> (y) -> (z) -> thaw app(x, z, app(y, z)) | |
K = (x) -> (y) -> thaw x | |
I = (x) -> thaw x | |
parseLazyK = (source) -> | |
stack = [[]] |
$ ./bin/coffee --js < a.coffee
Cannot read property 'args' of undefined
USE_OCAMLFIND = true | |
OCAMLPACKS[] = | |
llvm | |
FILES[] = | |
types | |
lambda | |
parser | |
lexer |
#! bin/bash | |
MANSECT="1 2 3 4 5 n" | |
for i in $MANSECT | |
do | |
echo 'aaa' | |
done | |
# aaa | |
# aaa | |
# aaa |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE ExplicitForAll #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
module Main where |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example</title> | |
<script src="http://code.jquery.com/jquery-2.0.3.js"></script> | |
<script> | |
jQuery(function ($) { | |
$(".bg").bind("click", function () { | |
$(".fg").add("#show").add("#hide").toggleClass("showing hiding"); | |
}); |
(< let %N (using qualified data.church.number) | |
`. let %B (using qualified data.church.boolean) | |
`in | |
#(< let %3 (N #succ (N #succ (N #succ (N #$0)))) | |
`. let %5 (N #succ (N #succ (N #succ (N #succ (N #succ (N #$0)))))) | |
`. let %church-nat->js-int (%n #(n ($+ "1") "0")) | |
`. let %IF (%cond (%then (%else #(cond then else)))) | |
`. let %EQ (%n (%m #(B #and (N #zero? (N #sub n m)) (N #zero? (N #sub m n))))) | |
`in #(< let %15 (N #mul $3 $5) |
#include <string> | |
#include <iostream> | |
template <bool cond> | |
struct print_if | |
{ | |
static void run(std::string msg) {} | |
}; | |
{-# LANGUAGE TemplateHaskell #-} | |
module FizzBuzz where | |
import Language.Haskell.TH | |
fizzbuzz :: Int -> ExpQ | |
fizzbuzz 0 = [| putStrLn "FizzBuzz" |] | |
fizzbuzz n = appE (appE (varE (mkName ">>")) | |
(fizzbuzz (n - 1))) |