Re: [Pyparsing] DSL using pyparsing
Brought to you by:
ptmcg
From: Paul M. <pt...@au...> - 2009-06-12 02:11:58
|
> Thanks Paul, I think i have the idea now. I am using Imputil, so the > problem i have now is that i am using imputil, so when say i am trying to > compile a script, say: > > A = Color(100, 10, 50) > > I get a "NameError: name 'Color' is not defined". Any ideas? > > Well, you *are* generating Python code, so if you had originally written that line of code you would get the same error. The Color class needs to come from somewhere. Either import it from another module, or define it somewhere in your source program (maybe in the module you import to include the imputil hook). -- Paul |