Пример #1
0
		/// <summary>
		/// Return a Guid associated with the T* instance.
		/// </summary>
		protected unsafe Guid RegisterNode(TreeNode* node)
		{
			Guid guid = Guid.NewGuid();
			nodes[guid] = (IntPtr)node;

			return guid;
		}
Пример #2
0
		extern static unsafe void _t2json(Defs* d, TreeNode* tree, int indent, char* buf);
Пример #3
0
		protected unsafe string Dump(Defs defs, TreeNode* node)
		{
			string ret = String.Empty;

			try
			{
				fixed (char* buf = new char[10000])
				{
					__t_dump(&defs, node, 0, buf);
					ret = Marshal.PtrToStringAnsi((IntPtr)buf);
				}
			}
			catch (Exception ex)
			{
				// TODO: Log message
				System.Diagnostics.Debug.WriteLine(ex.Message);
				System.Diagnostics.Debugger.Break();
			}

			return ret;
		}
Пример #4
0
		extern static unsafe int _t_matchr(TreeNode* semtrex, TreeNode* matchAgainst, TreeNode** matchResult);
Пример #5
0
		extern static unsafe TreeNode* _t_embody_from_match(Defs* d, TreeNode* matchResult, TreeNode* semtrex);
Пример #6
0
		extern static unsafe int _t_match(TreeNode* semtrex, TreeNode* matchAgainst);
Пример #7
0
		// [return: MarshalAs(UnmanagedType.LPStr)]
		extern static unsafe void __t_dump(Defs* defs, TreeNode* t, int level, char* buf);
Пример #8
0
		extern static unsafe int _t_children(TreeNode* structures);
Пример #9
0
		extern static unsafe SemanticID _dv_define_structure(TreeNode* structures, [MarshalAs(UnmanagedType.LPStr)] string label, int num_params, __arglist);
Пример #10
0
		extern static unsafe SemanticID _d_declare_symbol(TreeNode* symbols, SemanticID sid, string label, UInt16 context);