Exemple #1
0
 protected BaseInterpreter([NotNull] BaseInterpreter parent, [NotNull] string name, int offset = 0)
 {
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     TopInterpreter = parent.TopInterpreter;
     Parent         = parent;
     Offset         = offset;
     Name           = name ?? throw new ArgumentNullException(nameof(name));
 }
Exemple #2
0
 public ActionInterpreter(CmdActionAttribute myActionAttribute, BaseInterpreter parent, int offset = 0) : base(parent,
                                                                                                               myActionAttribute.Name, offset) => _underlyingAction = myActionAttribute;