Skip to content

Commit

Permalink
Add constant tool
Browse files Browse the repository at this point in the history
  • Loading branch information
hallambaker committed Oct 7, 2020
1 parent 34a8c0b commit ee733c5
Show file tree
Hide file tree
Showing 238 changed files with 8,603 additions and 899 deletions.
4 changes: 2 additions & 2 deletions ASN/asn2/AssemblyVersion.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0.270")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0.270")]
[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0.290")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0.290")]

2 changes: 1 addition & 1 deletion ASN/asn2/VS.Make
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ASN2.cs : ASN2.command


prebuildRecurse :
cd ..\Goedel.Tool.ASN && nmake /a /c /f VS.make prebuild
cd ..\Goedel.Tool.ASN && nmake /c /f VS.make prebuild


postbuildRecurse :
Expand Down
4 changes: 2 additions & 2 deletions ASN/asn2/version.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.0.0.270
3.0.0.270
3.0.0.290
3.0.0.290
31 changes: 31 additions & 0 deletions BuildTools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Goedel.FSR", "..\mmm\Librar
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Goedel.Command", "..\mmm\Libraries\Core\Goedel.Command\Goedel.Command.csproj", "{AEAE0789-44DF-4B7F-B346-C15BBD90B458}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tool Constant", "Tool Constant", "{CB0E0AF4-0877-40BE-B0AA-DA18ABBC9E72}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "constant", "Constant\constant\constant.csproj", "{B122A664-D433-4993-8E7B-8139BC5890F4}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Goedel.Tool.Constant", "Constant\Goedel.Tool.Constant\Goedel.Tool.Constant.shproj", "{89C76FCA-62D3-4198-A8B4-489A7A4F4ACA}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
DocTools\Goedel.Document.Markdown\Goedel.Document.Markdown.projitems*{01be8cf8-8989-4e94-adf0-97340821a660}*SharedItemsImports = 5
Expand All @@ -186,8 +192,10 @@ Global
DocTools\Goedel.Document.RFC\Goedel.Document.RFC.projitems*{7c30fbe5-8e08-4687-ad68-8028819d5e57}*SharedItemsImports = 13
GScript\Goedel.Tool.Script\Goedel.Tool.Script.projitems*{7d3b1b22-f249-4389-ab94-790757144aa2}*SharedItemsImports = 13
Goedel3\Goedel.Tool.Schema\Goedel.Tool.Schema.projitems*{85063efc-7090-42ad-b562-006087de9aa6}*SharedItemsImports = 5
Constant\Goedel.Tool.Constant\Goedel.Tool.Domainer.projitems*{89c76fca-62d3-4198-a8b4-489a7a4f4aca}*SharedItemsImports = 13
DNSConfig\Goedel.Tool.DNSConfig\Goedel.Tool.DNSConfig.projitems*{9c81e246-38a7-4567-b2db-f1dbde2a0b65}*SharedItemsImports = 13
DocTools\Goedel.Document.OpenXML\Goedel.Document.OpenXML.projitems*{a25a14da-8ac5-445e-9562-46c11c54ea15}*SharedItemsImports = 13
Constant\Goedel.Tool.Constant\Goedel.Tool.Constant.projitems*{b122a664-d433-4993-8e7b-8139bc5890f4}*SharedItemsImports = 5
FSRGen\Goedel.Tool.FSRGen\Goedel.Tool.FSRGen.projitems*{c0c2037e-ecf1-4fbf-82f8-7c2e6feb0d3f}*SharedItemsImports = 5
MakeyMakey\Goedel.Tool.Makey\Goedel.Tool.Makey.projitems*{c22aa4a5-f0a0-4cff-ab4d-7a02f5dfb59e}*SharedItemsImports = 5
ASN\Goedel.Tool.ASN\Goedel.Tool.ASN.projitems*{c4be31be-8172-455d-a94f-275410348065}*SharedItemsImports = 13
Expand Down Expand Up @@ -750,6 +758,26 @@ Global
{AEAE0789-44DF-4B7F-B346-C15BBD90B458}.Release|Any CPU.Build.0 = Release|Any CPU
{AEAE0789-44DF-4B7F-B346-C15BBD90B458}.Release|x86.ActiveCfg = Release|Any CPU
{AEAE0789-44DF-4B7F-B346-C15BBD90B458}.Release|x86.Build.0 = Release|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Debug|x86.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Debug|x86.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.DotNet|Any CPU.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.DotNet|Any CPU.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.DotNet|x86.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.DotNet|x86.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Focus|Any CPU.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Focus|Any CPU.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Focus|x86.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Focus|x86.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Publish|Any CPU.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Publish|Any CPU.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Publish|x86.ActiveCfg = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Publish|x86.Build.0 = Debug|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Release|Any CPU.Build.0 = Release|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Release|x86.ActiveCfg = Release|Any CPU
{B122A664-D433-4993-8E7B-8139BC5890F4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -810,6 +838,9 @@ Global
{67ED1ABA-9E63-4076-A444-2B70CEA5E4AA} = {510C00FB-FB4F-4C9E-A2F6-86D2FA171CD1}
{20A1F6B7-52D3-43DF-A0FF-1C2AE4275954} = {510C00FB-FB4F-4C9E-A2F6-86D2FA171CD1}
{AEAE0789-44DF-4B7F-B346-C15BBD90B458} = {510C00FB-FB4F-4C9E-A2F6-86D2FA171CD1}
{CB0E0AF4-0877-40BE-B0AA-DA18ABBC9E72} = {32781FAB-7F7F-4267-9599-479F14195A4B}
{B122A664-D433-4993-8E7B-8139BC5890F4} = {CB0E0AF4-0877-40BE-B0AA-DA18ABBC9E72}
{89C76FCA-62D3-4198-A8B4-489A7A4F4ACA} = {CB0E0AF4-0877-40BE-B0AA-DA18ABBC9E72}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4B0FED20-F156-4724-9241-1F63A97DA43E}
Expand Down
4 changes: 2 additions & 2 deletions Command/CommandEcho/AssemblyVersion.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0.71")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0.71")]
[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0.75")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0.75")]

4 changes: 2 additions & 2 deletions Command/CommandEcho/version.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.0.0.71
3.0.0.71
3.0.0.75
3.0.0.75
4 changes: 2 additions & 2 deletions Command/commandparse/AssemblyVersion.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0.271")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0.271")]
[assembly: System.Reflection.AssemblyVersionAttribute("3.0.0.291")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.0.0.291")]

2 changes: 1 addition & 1 deletion Command/commandparse/VS.Make
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Command.cs : Command.command


prebuildRecurse :
cd ..\Goedel.Tool.Command && nmake /a /c /f VS.make prebuild
cd ..\Goedel.Tool.Command && nmake /c /f VS.make prebuild


postbuildRecurse :
Expand Down
4 changes: 2 additions & 2 deletions Command/commandparse/version.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.0.0.271
3.0.0.271
3.0.0.291
3.0.0.291
104 changes: 104 additions & 0 deletions Constant/Goedel.Tool.Constant/ConstantPlus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Goedel.Tool.Constant {
public partial class Constant {


public Namespace Namespace;

public string NameSpaceName => Namespace.Id.Label;
public string Class => Namespace.Class.Label;


public List<_Choice> All = new List<_Choice>();
public List<File> Files = new List<File>();

public List<_Choice> Entries = new List<_Choice>();

public List<Enum> Enums = new List<Enum>();

public override void Init() {

if (_Initialized) {
return;
}

foreach (var entry in Top) {
All.Add(entry);
switch (entry) {
case File File: {
this.Files.Add(File);

foreach (var item in File.Entries) {
Entries.Add(item);

switch (item) {
case Enum Enum: {
Enum.Init(entry);
Enums.Add(Enum);
break;
}
}


}

break;
}
case Namespace nameSpace: {
Namespace = nameSpace;
break;
}
}
entry.Init(null);
}

}
}
public partial class Enum {
public override void Init(_Choice Parent) {
foreach (var item in Code) {
item.Init(this);
}
foreach (var item in UDF) {
item.Init(this);
}
foreach (var item in Integer) {
item.Init(this);
}
}
}

public partial class UDF {
public string Title;
public string Id;

public override void Init(_Choice Parent) {
Title = "" ;
Id = Class.Label;

if (Algorithm?.Id != null) {
Title = Class.Label + " " + Algorithm.Id.Label;
Id += "_" + Algorithm.Id.Label;
}

if (Compress.Bits > 0) {
Title += $" ({Compress.Bits} bits compressed)";
Id += "_" + $"{Compress.Bits}";
}
if (Note?.Text != null) {
Title = Note.Text;
}
}
}

public partial class Code {
public override void Init(_Choice Parent) {


}
}
}
Loading

0 comments on commit ee733c5

Please sign in to comment.