Skip to content

Instantly share code, notes, and snippets.

View leque's full-sized avatar

OOHASHI Daichi leque

View GitHub Profile
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 300 800
gsave
/sheetwidth 595.276 def
% landscape
sheetwidth 0 translate
90 rotate
/cm { 28.3 mul } def
/cm { 28.3 mul } def
/unit { cm } def
/fontsize 0.7 unit def
/Times-Roman findfont fontsize scalefont setfont
/normalized-degree {
360 mod 360 add 360 mod
} bind def
@leque
leque / de2am.ml
Last active February 21, 2019 13:03
(* from `An operational foundation for delimited continuations in the CPS hierarchy'.
https://lmcs.episciences.org/2269/pdf
*)
(* a language *)
type exp =
| Value of int
| Add of exp * exp
type value = int
javascript:(function(){var t=document.createElement('textarea');document.body.appendChild(t);t.textContent=document.title+'\n'+document.URL;t.contentEditable=true;t.readOnly=false;t.setSelectionRange(0,65536);document.execCommand('copy');t.parentNode.removeChild(t);})();
grammar scheme;
// fragments
fragment Digit : [0-9];
fragment HexDigit : Digit | [a-fA-F];
fragment ExplicitSign : [-+];
open Rresult
let f : string -> (string, [> `Empty]) result =
fun s ->
if String.length s = 0 then
Error `Empty
else
Ok s
let g : string -> ('a, [> `Msg of string]) result =
@leque
leque / sat.dot
Last active June 27, 2018 16:13
module dependency of SATySFi
// module dependency of SATySFi at the commit https://github.com/leque/SATySFi/tree/32320e05f53e43759fab8d73ed87b05b7550f806
digraph G {
"Alist";
"Assoc";
"Base85";
"Bytecomp";
"Bytecomp" -> "Compiler";
"Bytecomp" -> "Ir_";
"Bytecomp" -> "LengthInterface";
"Bytecomp" -> "MyUtil";
@leque
leque / refs.md
Last active March 31, 2018 21:47
CAML考古学参考文献

発表スライド

CAML考古学 at ML Day #1 2018-03-31 参考文献

@leque
leque / .merlin
Last active March 21, 2018 14:45
a toy example using pumping
PKG pumping
@leque
leque / index.html
Last active July 25, 2020 08:56
SATySFi syntax memo (reduced)
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html>
<?xml version='1.0'?><html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><title>SATySFi syntax memo (parser.mly 2018-02-21)</title><style type="text/css">
.bnf-lhs {
text-align : right;
vertical-align : baseline;
}
.bnf-eq {
text-align : center;