set coordinate values from ValueContext
This commit is contained in:
parent
049286266f
commit
14a11fc277
|
@ -61,6 +61,11 @@ class ArmCtlListener(ArmControlListener):
|
|||
self.values = []
|
||||
self.index = 0
|
||||
|
||||
# Exit a parse tree produced by ArmControlParser#value.
|
||||
def exitValue(self, ctx: ArmControlParser.ValueContext):
|
||||
if isinstance(ctx.parentCtx, ArmControlParser.CoordsContext):
|
||||
ctx.parentCtx.values.insert(ctx.parentCtx.index, ctx.value)
|
||||
|
||||
# Exit a parse tree produced by ArmControlParser#number.
|
||||
def exitNumber(self, ctx: ArmControlParser.NumberContext):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue