Skip to content

Instantly share code, notes, and snippets.

Avatar

Howard Gehring HWGehring

  • Central New York
View GitHub Profile
@HWGehring
HWGehring / parsing.py
Created Sep 27, 2015
Rich Wareham's "Toy Language Parser"
View parsing.py
from enochi.lexing import TokenType
from enochi import astnodes
class ParseError(Exception):
def __init__(self, message, *tokens):
self.message = message
self.tokens = tokens