Class ParserRuleReturnScope
object --+
|
RuleReturnScope --+
|
ParserRuleReturnScope
- Known Subclasses:
-
- enhanced_sampling.mexpParser.mexpParser.factor_return
- , enhanced_sampling.mexpParser.mexpParser.expr_return
- , enhanced_sampling.mexpParser.mexpParser.comp_return
- , enhanced_sampling.mexpParser.mexpParser.decl_output_return
- , enhanced_sampling.mexpParser.mexpParser.varWithType_return
- , enhanced_sampling.mexpParser.mexpParser.prog_return
- , enhanced_sampling.mexpParser.mexpParser.decl_meta_return
- , enhanced_sampling.mexpParser.mexpParser.expComp_return
- , enhanced_sampling.mexpParser.mexpParser.fcnCall_return
- , enhanced_sampling.mexpParser.mexpParser.output_term_return
- , enhanced_sampling.mexpParser.mexpParser.iter_return
- , enhanced_sampling.mexpParser.mexpParser.static_return
- , enhanced_sampling.mexpParser.mexpParser.meta_term_return
- , enhanced_sampling.mexpParser.mexpParser.block_return
- , enhanced_sampling.mexpParser.mexpParser.if__return
- , enhanced_sampling.mexpParser.mexpParser.atom_return
- , enhanced_sampling.mexpParser.mexpParser.signedExpComp_return
- , enhanced_sampling.mexpParser.mexpParser.bind_return
- , enhanced_sampling.mexpParser.mexpParser.series_return
- , enhanced_sampling.mexpParser.mexpParser.exprOrBind_return
- , enhanced_sampling.mexpParser.mexpParser.decl_return
- , enhanced_sampling.mexpParser.mexpParser.header_return
Rules that return more than a single value must return an object
containing all the values. Besides the properties defined in
RuleLabelScope.predefinedRulePropertiesScope there may be user-defined
return values. This class simply defines the minimum properties that are
always defined and methods to access the others that might be available
depending on output option such as template and tree.
Note text is not an actual property of the return value, it is
computed from start and stop using the input stream's toString() method.
I could add a ctor to this so that we can pass in and store the input
stream, but I'm not sure we want to do that. It would seem to be
undefined to get the .text property anyway if the rule matches tokens
from multiple input streams.
I do not use getters for fields of objects that are used simply to
group values such as this aggregate. The getters/setters are there to
satisfy the superclass interface.
|
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
getStart(self)
Return the start token or tree. |
|
|
|
getStop(self)
Return the stop token or tree. |
|
|
Inherited from RuleReturnScope :
getTemplate ,
getTree
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
__init__(self)
(Constructor)
|
|
x.__init__(...) initializes x; see help(type(x)) for signature
- Overrides:
object.__init__
- (inherited documentation)
|