Exemplo n.º 1
0
        public override object VisitAssign(ShapPangParser.AssignContext context)
        {
            if (context.ID().GetText() == CurrentDerivation.Name)
            {
                CurrentDerivation.Value = (decimal)base.VisitAssign(context);
                return(CurrentDerivation.Value);
            }
            IValue val = CurrentScenario.ResolveReference(context.ID().GetText(), ParsingContext.ElementScope.ElementName);

            return(base.VisitAssign(context));
        }
Exemplo n.º 2
0
 public override object VisitAssign(ShapPangParser.AssignContext context)
 {
     Context.DerivationScope.AddAssignment(context.ID().ToString());
     return(base.VisitAssign(context));
 }