scenic.syntax.compiler
Summary of Module Members
Functions
Compiles Scenic AST to Python AST |
|
|
Classes
|
|
Utility class for finding all referenced attributes of a given name. |
|
An enumeration. |
|
Utility class for finding all local variables of a code block. |
|
|
|
|
|
Subclass of |
Member Details
- compileScenicAST(scenicAST, *, filename='<unknown>', inBehavior=False, inMonitor=False, inCompose=False, inSetup=False, inInterruptBlock=False)[source]
Compiles Scenic AST to Python AST
- class AttributeFinder(target)[source]
Bases:
NodeVisitorUtility class for finding all referenced attributes of a given name.
- class LocalFinder[source]
Bases:
NodeVisitorUtility class for finding all local variables of a code block.
- class Transformer(filename)[source]
Bases:
NodeTransformerSubclass of
ast.NodeTransformerwith a method for raising syntax errors.
- class Context(value)[source]
Bases:
IntFlagAn enumeration.
- _generate_next_value_(start, count, last_values)
Generate the next value when not given.
name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None