version 2673, Tue Aug 17 01:25:45 2010 UTC | version 2705, Tue Sep 6 00:20:18 2011 UTC | ||
---|---|---|---|
|
|
||
predicates against snippets of parameterized Python code, such that a | predicates against snippets of parameterized Python code, such that a | ||
rule expression like:: | rule expression like:: | ||
syntax.match(expr, type(`x`) is `y`) and y in Const | syntax.match(expr, type(`x`) is `y`) and isinstance(y, Const) | ||
Will return true if ``expr`` is a PEAK-Rules AST of the form:: | Will return true if ``expr`` is a PEAK-Rules AST of the form:: | ||
|
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |