Skip to content

Instantly share code, notes, and snippets.

View jvanburen's full-sized avatar
🤠

Jacob Van Buren jvanburen

🤠
  • NYC
  • 09:48 (UTC -04:00)
View GitHub Profile
@jvanburen
jvanburen / install-jvb-sml.sh
Last active February 15, 2018 06:37
Patches SML/NJ version 110.82 to do an unused variables check!
#!/bin/bash
set -e
HEADER="\033[95m"
ENDC="\033[0m"
function inform_user {
echo -e "${HEADER}$@${ENDC}"
}
SMLNJ_VERSION=110.82 # (If this changes, you'll likely have to change the patch...)
gf="https://smlnj-gforge.cs.uchicago.edu/svn"
@jvanburen
jvanburen / 110.82-unusedvars.patch
Last active February 15, 2018 05:50
Patches SML/NJ version 110.82 to do an unused variables check!
Index: compiler/ElabData/basics/lambdavar.sig
===================================================================
--- compiler/ElabData/basics/lambdavar.sig (revision 4519)
+++ compiler/ElabData/basics/lambdavar.sig (working copy)
@@ -4,7 +4,7 @@
signature LAMBDA_VAR =
sig
- type lvar
+ type lvar = int
@jvanburen
jvanburen / parenchecker.py
Last active August 29, 2015 14:08
Parenthesis Checker
#!/usr/bin/env python3
import argparse
from bisect import bisect
from collections import namedtuple
from itertools import chain
import re
from sys import stdin, stderr
__all__ = ("Settings", "ParenParser")