예제 #1
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());
        }
예제 #2
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());
        }
예제 #3
0
        public static TreeNode Convert(IIronyAstObject item)
        {
            var converter = new GMacAstToTreeViewNodes();

            return(item.AcceptVisitor(converter));
        }