[Pyparsing] DSL using pyparsing
Brought to you by:
ptmcg
From: Asim M. <as...@ho...> - 2009-06-10 18:57:48
|
Ok i am looking at building a DSL using pyparsing and am relatively new to python . Intially I am looking at something like this: A = {build some list, this calls some underlying python api and creates say a class A} B = {build another list, this creates another python class B } C= A+B Should i parse this as a single script or parse each statement? If i parse each statement how can i pass variables that were defined in the previous statement? As the complexity of the doamin increase, it might be the case that the construction of A depends on other statements. What i am looking for is the best approach. Thanks |