Skip to content

Commit

Permalink
Added extension project which can format structured text.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roald87 committed Apr 2, 2021
1 parent ad3bdd2 commit b4ab812
Show file tree
Hide file tree
Showing 12 changed files with 955 additions and 58 deletions.
138 changes: 80 additions & 58 deletions src/TcBlack.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TcBlackCoreTests", "TcBlack
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TcBlackCore", "TcBlackCore\TcBlackCore.csproj", "{434C7A68-C27F-4F46-977E-2F60441FEB64}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TcBlackExtension", "TcBlackExtension\TcBlackExtension.csproj", "{DE482F7D-9E9D-481C-A9B7-871D7ED05212}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -135,64 +137,6 @@ Global
{87DFDA93-482C-4C04-ABF1-50E23F24F85D}.Release|TwinCAT RT (x64).Build.0 = Release|Any CPU
{87DFDA93-482C-4C04-ABF1-50E23F24F85D}.Release|TwinCAT RT (x86).ActiveCfg = Release|Any CPU
{87DFDA93-482C-4C04-ABF1-50E23F24F85D}.Release|TwinCAT RT (x86).Build.0 = Release|Any CPU
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|Any CPU.ActiveCfg = Debug|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x64).Build.0 = Debug|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|TwinCAT RT (x86)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x86).Build.0 = Debug|TwinCAT RT (x86)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|Any CPU.ActiveCfg = Release|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT OS (ARMT2).Build.0 = Release|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x64).ActiveCfg = Release|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x64).Build.0 = Release|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x86).ActiveCfg = Release|TwinCAT RT (x86)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x86).Build.0 = Release|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|Any CPU.ActiveCfg = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|Any CPU.Build.0 = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x64).Build.0 = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x86).Build.0 = Debug|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|Any CPU.ActiveCfg = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|Any CPU.Build.0 = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT OS (ARMT2).Build.0 = Release|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x64).ActiveCfg = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x64).Build.0 = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x86).ActiveCfg = Release|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x86).Build.0 = Release|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|Any CPU.ActiveCfg = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|Any CPU.Build.0 = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x64).Build.0 = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x86).Build.0 = Debug|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|Any CPU.ActiveCfg = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|Any CPU.Build.0 = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT OS (ARMT2).Build.0 = Release|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x64).ActiveCfg = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x64).Build.0 = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x86).ActiveCfg = Release|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x86).Build.0 = Release|TwinCAT RT (x86)
{D86EFF5A-952E-42BD-AEB4-605F02ED336C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D86EFF5A-952E-42BD-AEB4-605F02ED336C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D86EFF5A-952E-42BD-AEB4-605F02ED336C}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -233,6 +177,84 @@ Global
{434C7A68-C27F-4F46-977E-2F60441FEB64}.Release|TwinCAT RT (x64).Build.0 = Release|Any CPU
{434C7A68-C27F-4F46-977E-2F60441FEB64}.Release|TwinCAT RT (x86).ActiveCfg = Release|Any CPU
{434C7A68-C27F-4F46-977E-2F60441FEB64}.Release|TwinCAT RT (x86).Build.0 = Release|Any CPU
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|Any CPU.ActiveCfg = Debug|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x64).Build.0 = Debug|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|TwinCAT RT (x86)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Debug|TwinCAT RT (x86).Build.0 = Debug|TwinCAT RT (x86)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|Any CPU.ActiveCfg = Release|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|TwinCAT CE7 (ARMV7)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT OS (ARMT2).Build.0 = Release|TwinCAT OS (ARMT2)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x64).ActiveCfg = Release|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x64).Build.0 = Release|TwinCAT RT (x64)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x86).ActiveCfg = Release|TwinCAT RT (x86)
{0AB6833F-593B-4E68-AC63-B575821ACF23}.Release|TwinCAT RT (x86).Build.0 = Release|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|Any CPU.ActiveCfg = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|Any CPU.Build.0 = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x64).Build.0 = Debug|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Debug|TwinCAT RT (x86).Build.0 = Debug|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|Any CPU.ActiveCfg = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|Any CPU.Build.0 = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|TwinCAT CE7 (ARMV7)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT OS (ARMT2).Build.0 = Release|TwinCAT OS (ARMT2)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x64).ActiveCfg = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x64).Build.0 = Release|TwinCAT RT (x64)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x86).ActiveCfg = Release|TwinCAT RT (x86)
{BDD00A0B-9FFE-4A2C-B504-1A16BFE106B2}.Release|TwinCAT RT (x86).Build.0 = Release|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|Any CPU.ActiveCfg = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|Any CPU.Build.0 = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x64).Build.0 = Debug|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Debug|TwinCAT RT (x86).Build.0 = Debug|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|Any CPU.ActiveCfg = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|Any CPU.Build.0 = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|TwinCAT CE7 (ARMV7)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT OS (ARMT2).Build.0 = Release|TwinCAT OS (ARMT2)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x64).ActiveCfg = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x64).Build.0 = Release|TwinCAT RT (x64)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x86).ActiveCfg = Release|TwinCAT RT (x86)
{7CF85DA4-8F2E-4244-BC74-2C56883E6551}.Release|TwinCAT RT (x86).Build.0 = Release|TwinCAT RT (x86)
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT CE7 (ARMV7).ActiveCfg = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT CE7 (ARMV7).Build.0 = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT OS (ARMT2).ActiveCfg = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT OS (ARMT2).Build.0 = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT RT (x64).ActiveCfg = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT RT (x64).Build.0 = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT RT (x86).ActiveCfg = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Debug|TwinCAT RT (x86).Build.0 = Debug|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|Any CPU.Build.0 = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT CE7 (ARMV7).ActiveCfg = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT CE7 (ARMV7).Build.0 = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT OS (ARMT2).ActiveCfg = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT OS (ARMT2).Build.0 = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT RT (x64).ActiveCfg = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT RT (x64).Build.0 = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT RT (x86).ActiveCfg = Release|Any CPU
{DE482F7D-9E9D-481C-A9B7-871D7ED05212}.Release|TwinCAT RT (x86).Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
58 changes: 58 additions & 0 deletions src/TcBlack/TcDeclaration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
namespace TcBlack
{
public struct TcDeclaration
{
public TcDeclaration(
string name,
string allocation,
string dataType,
string initialization,
string comment
)
{
Name = name;
Allocation = allocation;
DataType = dataType;
Initialization = initialization;
Comment = comment;
}

public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType())
{
return false;
}

var other = (TcDeclaration)obj;
return
Name == other.Name
&& Allocation == other.Allocation
&& DataType == other.DataType
&& Initialization == other.Initialization
&& Comment == other.Comment
;
}

public static bool operator==(TcDeclaration obj1, TcDeclaration obj2)
{
if (obj1 == null)
{
return obj2 == null;
}

return obj1.Equals(obj2);
}

public static bool operator !=(TcDeclaration obj1, TcDeclaration obj2)
{
return !(obj1 == obj2);
}

public string Name { get; }
public string Allocation { get; }
public string DataType { get; }
public string Initialization { get; }
public string Comment { get; }
}
}
9 changes: 9 additions & 0 deletions src/TcBlackCore/TcBlackCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>TcBlackCoreSign.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -54,5 +60,8 @@
<Compile Include="VariableBlockStart.cs" />
<Compile Include="VariableDeclaration.cs" />
</ItemGroup>
<ItemGroup>
<None Include="TcBlackCoreSign.pfx" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Loading

0 comments on commit b4ab812

Please sign in to comment.