1
0
Fork 0

set coordinate values from ValueContext

This commit is contained in:
Kevin Matz 2019-07-30 10:40:20 -04:00
parent 049286266f
commit 14a11fc277
1 changed files with 5 additions and 0 deletions

View File

@ -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: