コード例 #1
0
ファイル: Program.cs プロジェクト: GraphLaboratoy/GSharpDSL
        static void Main(string[] args)
        {
            CTranslationUnit tr = new CTranslationUnit();

            CGraph graph = CGraph.CreateGraph();

            tr.dipole()
            .algorithm()
            .algorithm()
            .connections()
            .connection()
            .GRAPH(graph)
            .GRAPHELEMENTTYPE(GraphElementType.ET_NODE)
            .KEY(graph.GetHashCode())
            .INFOTYPE(typeof(int))
            .end()
            .end();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: GraphLaboratoy/GSharpDSL
 public CDipole(CTranslationUnit father)
 {
     this.father = father;
 }