Skip to content

Instantly share code, notes, and snippets.

View tylercrompton's full-sized avatar

Tyler Crompton tylercrompton

View GitHub Profile
@tylercrompton
tylercrompton / keybase.md
Last active March 22, 2016 04:55
Keybase Proof

Keybase proof

I hereby claim:

  • I am tylercrompton on github.
  • I am tylercrompton (https://keybase.io/tylercrompton) on keybase.
  • I have a public key ASBaTBh8tF1Dci4nwsIsarbGT_6740Yi1dLDoMLZin2IIwo

To claim this, I am signing this object:

@tylercrompton
tylercrompton / lexer.py
Created December 29, 2013 02:08
A lexical analyzer for Python
class Token:
def __init__(self, value, type):
self.value = value
self.type = type
def __repr__(self):
return '{}({}, {})'.format(self.__class__.__name__, repr(self.value), repr(self.type))
class PatternError(ValueError):
pass