jasy.script.parse package¶
Submodules¶
jasy.script.parse.Lang module¶
jasy.script.parse.Node module¶
-
class
jasy.script.parse.Node.
Node
(tokenizer=None, type=None, args=[])[source]¶ Bases:
jasy.parse.AbstractNode.AbstractNode
-
assignOp
¶
-
block
¶
-
body
¶
-
comments
¶
-
condition
¶
-
defaultIndex
¶
-
discriminant
¶
-
elsePart
¶
-
end
¶
-
exception
¶
-
expression
¶
-
expressionClosure
¶
-
fileId
¶
-
finallyBlock
¶
-
for
¶
-
functionForm
¶
-
guard
¶
-
initializer
¶
-
isEach
¶
-
isLoop
¶
-
iterator
¶
-
label
¶
-
line
¶
-
name
¶
-
names
¶
-
object
¶
-
params
¶
-
parent
¶
-
parenthesized
¶
-
postfix
¶
-
readOnly
¶
-
rel
¶
-
scope
¶
-
setup
¶
-
start
¶
-
statement
¶
-
statements
¶
-
tail
¶
-
thenPart
¶
-
tokenizer
¶
-
tryBlock
¶
-
type
¶
-
update
¶
-
value
¶
-
variables
¶
-
jasy.script.parse.Parser module¶
jasy.script.parse.ScopeScanner module¶
-
jasy.script.parse.ScopeScanner.
scan
(tree)[source]¶ Scans the given tree and attaches variable data instances (core/ScopeData.py) to every scope (aka function).
This data is being stored independently from the real tree so that if you modifiy the tree the data is not automatically updated. This means that every time you modify the tree heavily, it might make sense to re-execute this method to bring it in sync to the current tree structure.