public override string VisitOutcomeSetter([NotNull] WordLangParser.OutcomeSetterContext context) { var target = Quotize(TreeVisitor.Visit(context.referance())); var expr = Quotize(TreeVisitor.Visit(context.expression())); return($"{{\"command\":\"set\",\"target\":{target},\"arguments\":{{\"\":{expr}}}}}"); }
public override string VisitOutcomeSetter([NotNull] WordLangParser.OutcomeSetterContext context) { var toSet = Visit(context.referance()); var expr = Visit(context.expression()); return($"(set target=[{toSet}] expr=[{expr}])"); }