Exemplo n.º 1
0
		public unsafe SemanticID DefineStructure(Guid structures, string name, SemanticID[] symbolArray, SemanticContexts sc = SemanticContexts.RECEPTOR_CONTEXT)
		{
			TreeNode *structs = (TreeNode*)nodes[structures];

			_dv_define_structure(structs, name, symbolArray.Length, __arglist(symbolArray));
			SemanticID st = new SemanticID() { context = (ushort)sc, flags = (ushort)SemanticTypes.SEM_TYPE_STRUCTURE, id = (uint)_t_children(structs) };

			return st;
		}
Exemplo n.º 2
0
        public unsafe SemanticID DefineStructure(Guid structures, string name, SemanticID[] symbolArray, SemanticContexts sc = SemanticContexts.RECEPTOR_CONTEXT)
        {
            TreeNode *structs = (TreeNode *)nodes[structures];

            _dv_define_structure(structs, name, symbolArray.Length, __arglist(symbolArray));
            SemanticID st = new SemanticID()
            {
                context = (ushort)sc, flags = (ushort)SemanticTypes.SEM_TYPE_STRUCTURE, id = (uint)_t_children(structs)
            };

            return(st);
        }
Exemplo n.º 3
0
		/// <summary>
		/// Declare a symbol having the specified structure.
		/// </summary>
		public unsafe SemanticID DeclareSymbol(Guid symbols, SemanticID st, string label, SemanticContexts sc = SemanticContexts.RECEPTOR_CONTEXT)
		{
			TreeNode *pnode = (TreeNode*)nodes[symbols];
			SemanticID symbol = _d_declare_symbol(pnode, st, label, (UInt16)sc);

			return symbol;
		}
Exemplo n.º 4
0
        /// <summary>
        /// Declare a symbol having the specified structure.
        /// </summary>
        public unsafe SemanticID DeclareSymbol(Guid symbols, SemanticID st, string label, SemanticContexts sc = SemanticContexts.RECEPTOR_CONTEXT)
        {
            TreeNode * pnode  = (TreeNode *)nodes[symbols];
            SemanticID symbol = _d_declare_symbol(pnode, st, label, (UInt16)sc);

            return(symbol);
        }