public CIdentifierASTNode(string id, E_NODE_ATTRIBUTES attributes = E_NODE_ATTRIBUTES.NA_DEFAULT) :
            base(E_NODE_TYPE.NT_IDENTIFIER)
        {
            mName = id;

            mAttributes = attributes | E_NODE_ATTRIBUTES.NA_IS_LEAF_NODE;
        }
        public CValueASTNode(int[] value, E_NODE_ATTRIBUTES attributes = E_NODE_ATTRIBUTES.NA_DEFAULT) :
            base(E_NODE_TYPE.NT_VALUE)
        {
            mValue = value;

            mAttributes = attributes | E_NODE_ATTRIBUTES.NA_IS_LEAF_NODE;
        }
Exemple #3
0
        public CBaseASTNode(E_NODE_TYPE type)
        {
            mNodeId = -1;

            mType = type;

            mChildren = new List <IASTNode>();

            mAttributes = E_NODE_ATTRIBUTES.NA_DEFAULT;
        }