コード例 #1
0
        public void Fallback(IIronyAstObject objItem, RuntimeBinderException excException)
        {
            if (ReferenceEquals(objItem, null))
            {
                Log.Append("<Unrecognized null object");
            }

            else
            {
                Log.Append("<Unrecognized object " + objItem + ">");
            }
        }
コード例 #2
0
ファイル: IronyAst.cs プロジェクト: phreed/GMac
        //public abstract ILanguageValue GetTypeInitializedValue(ILanguageType lang_type);

        //public abstract ILanguageValue CreateInitializedValue(TypePrimitive lang_type);

        public virtual string Describe(IIronyAstObject astItem)
        {
            if (ReferenceEquals(astItem, null))
            {
                return("<null ast item>");
            }

            _astDescription.Log.Clear();

            astItem.AcceptVisitor(_astDescription);

            return(_astDescription.Log.ToString());
        }
コード例 #3
0
ファイル: GMacAst.cs プロジェクト: phreed/GMac
        public override string Describe(IIronyAstObject astItem)
        {
            if (ReferenceEquals(astItem, null))
            {
                return("<null ast item>");
            }

            var astDescr = new GMacAstDescription();

            astDescr.Log.Clear();

            astItem.AcceptVisitor(astDescr);

            return(astDescr.Log.ToString());
        }
コード例 #4
0
 public TreeNode Fallback(IIronyAstObject objItem, RuntimeBinderException excException)
 {
     return(new TreeNode("Unrecognized Node!"));
 }
コード例 #5
0
        public static TreeNode Convert(IIronyAstObject item)
        {
            var converter = new GMacAstToTreeViewNodes();

            return(item.AcceptVisitor(converter));
        }
コード例 #6
0
 /// <summary>
 /// The parent GMac DSL of this GMac symbol
 /// </summary>
 /// <param name="dslObject"></param>
 /// <returns></returns>
 internal static GMacAst GMacRootAst(this IIronyAstObject dslObject)
 {
     return((GMacAst)dslObject.RootAst);
 }
コード例 #7
0
 public void Fallback(IIronyAstObject objItem, RuntimeBinderException excException)
 {
 }
コード例 #8
0
ファイル: LanguageInterpreter.cs プロジェクト: phreed/GMac
 public void Fallback(IIronyAstObject objItem, RuntimeBinderException excException)
 {
     throw new NotImplementedException();
 }