This file contains hidden or 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
package amyc.ast | |
import amyc.utils.Positioned | |
/* A polymorphic module containing definitions of Amy trees. | |
* | |
* This trait represents either nominal trees (where names have not been resolved) | |
* or symbolic trees (where names/qualified names) have been resolved to unique identifiers. | |
* This is done by having two type fields within the module, | |
* which will be instantiated differently by the two different modules. |
This file contains hidden or 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
#!/usr/bin/env python3.8 | |
import os | |
import sys | |
import re | |
import glob | |
ZK, = sys.argv[1:] | |
def make_link_regex(url_regex): |
This file contains hidden or 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
#!/usr/bin/env python3.8 | |
import re | |
import sys | |
import os | |
import uuid | |
from pathlib import Path | |
import glob | |
import time | |
import datetime |
This file contains hidden or 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
;;; tools/neuron/config.el -*- lexical-binding: t; -*- | |
(defface neuron-stub-face | |
'((((class color) (min-colors 88) (background dark)) :foreground "#C16069" :underline "#C16069") | |
(((class color) (min-colors 88) (background light)) :foreground "#C16069" :underline "#C16069") | |
(((class color) :foreground "Red" :underline "Red")) | |
(t :inherit neuron-title-overlay-face)) | |
"Face for stub links." | |
:group 'neuron-faces) |
This file contains hidden or 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 | |
LambdaCase | |
, OverloadedLists | |
, OverloadedStrings | |
, RecordWildCards | |
, BlockArguments | |
, DeriveFunctor | |
, TypeApplications | |
, GeneralizedNewtypeDeriving | |
#-} |
This file contains hidden or 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
#!/usr/bin/env python3.7 | |
# coding: utf-8 | |
import types | |
import functools | |
import abc | |
import typing | |
from contextlib import contextmanager | |
from collections import OrderedDict |
This file contains hidden or 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
# Types | |
abstract type Type | |
end | |
struct VarType <: Type | |
name :: String | |
rigid :: Bool | |
end |
This file contains hidden or 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
#!/usr/bin/env python3.5 | |
# coding: utf-8 | |
from abc import * | |
from collections import ChainMap, OrderedDict | |
import re | |
from operator import eq | |
This file contains hidden or 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
#!/usr/bin/env python3.4 | |
# coding: utf-8 | |
from collections import ChainMap | |
class Bytecode: | |
def __init__(self, instructions): | |
self.instructions = instructions | |
def __str__(self): |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# coding: utf-8 | |
import re | |
from collections import namedtuple | |
from functools import wraps | |
class ParseError(Exception): | |
pass |
NewerOlder