Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(0)  |  Derive(5)  |  Import(2)
generic visitor implementation

src/f/p/fp.py-HEAD/visitors.py   fp.py(Download)
from common import Visitor, CompositeVisitor
from gmachine import Code, SymbolTable
from common import Environment
from ast import *
 
class PrettyPrinter(Visitor):
class Identification(Visitor):
	"identify variables, combinators."
	def __init__(self, symtab):
		self.symtab = symtab
 
class CompilationScheme(Visitor):
	def __init__(self, facade, symtab):
		self.symtab = symtab
		self.facade = facade
		self.code = None

src/f/p/fp.py-HEAD/transforms.py   fp.py(Download)
from CoreParser import PROGRAM, COMBINATOR, APPLICATION, ID, LET, DEFINITION, LAMBDA
from common import Visitor, CompositeVisitor
from collections import defaultdict
from ast import *
 
class FreeVariables(Visitor):
class Transformer(Visitor):
	'base class for all transforming visitors'
	def __init__(self):
		super(Transformer, self).__init__()
		self.names = defaultdict(int)