Ejemplo n.º 1
0
 public IdentifierNode(IdentifierNode node)
 {
     Name = node.Name;
       AtmarkPrefix = node.AtmarkPrefix;
       ExpressionPrefix = node.ExpressionPrefix;
       TypePrefix = node.TypePrefix;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Return an assignable node from 
        /// </summary>
        /// <param name="node"></param>
        /// <returns></returns>
        public IdentifierNode GetAssignableNode(IdentifierNode getNode, IdentifierNode setNode)
        {
            if (getNode is IdentifierGetNode)
            return Expr.IdentifierSet(getNode as IdentifierGetNode, setNode);

              if (getNode is ArrayGetNode)
            return Expr.ArraySet(getNode as ArrayGetNode, setNode);

              if (getNode is MatrixGetNode)
            return Expr.MatrixSet(getNode as MatrixGetNode, setNode);

              throw new NotImplementedException();
        }
Ejemplo n.º 3
0
 public ShortAssignNode(IdentifierNode node, Lexer.Lexem lexem)
 {
     Lvalue = node;
       Lexem = lexem;
 }