diff --git a/Hussy.Net.sln b/Hussy.Net.sln index 55e6ed9..ce6874c 100644 --- a/Hussy.Net.sln +++ b/Hussy.Net.sln @@ -10,6 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{C08B EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hussy.Net.HelloWorld", "samples\Hussy.Net.HelloWorld\Hussy.Net.HelloWorld.csproj", "{F62EF1EB-4853-40E4-AF69-80BB5282270C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hussy.Net.Logic", "samples\Hussy.Net.Logic\Hussy.Net.Logic.csproj", "{F04046C8-5B51-46C2-8603-27E402981AF0}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -28,10 +30,15 @@ Global {F62EF1EB-4853-40E4-AF69-80BB5282270C}.Debug|Any CPU.Build.0 = Debug|Any CPU {F62EF1EB-4853-40E4-AF69-80BB5282270C}.Release|Any CPU.ActiveCfg = Release|Any CPU {F62EF1EB-4853-40E4-AF69-80BB5282270C}.Release|Any CPU.Build.0 = Release|Any CPU + {F04046C8-5B51-46C2-8603-27E402981AF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F04046C8-5B51-46C2-8603-27E402981AF0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F04046C8-5B51-46C2-8603-27E402981AF0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F04046C8-5B51-46C2-8603-27E402981AF0}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {14788585-4CAA-415C-8B29-B4E2BBDC9C66} = {B43C73D9-7CA0-4D59-8ABE-AFD9A3F54361} {D518FE46-8221-4751-9D6A-6CD0E0779A2F} = {B43C73D9-7CA0-4D59-8ABE-AFD9A3F54361} {F62EF1EB-4853-40E4-AF69-80BB5282270C} = {C08B73E3-E9BB-44DE-AE74-647A442780D9} + {F04046C8-5B51-46C2-8603-27E402981AF0} = {C08B73E3-E9BB-44DE-AE74-647A442780D9} EndGlobalSection EndGlobal diff --git a/samples/Hussy.Net.Logic/GlobalUsings.cs b/samples/Hussy.Net.Logic/GlobalUsings.cs new file mode 100644 index 0000000..2c165f0 --- /dev/null +++ b/samples/Hussy.Net.Logic/GlobalUsings.cs @@ -0,0 +1 @@ +global using static Hussy.Net.Hussy; \ No newline at end of file diff --git a/samples/Hussy.Net.Logic/Hussy.Net.Logic.csproj b/samples/Hussy.Net.Logic/Hussy.Net.Logic.csproj new file mode 100644 index 0000000..0a503f6 --- /dev/null +++ b/samples/Hussy.Net.Logic/Hussy.Net.Logic.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + diff --git a/samples/Hussy.Net.Logic/Program.cs b/samples/Hussy.Net.Logic/Program.cs new file mode 100644 index 0000000..d506ef2 --- /dev/null +++ b/samples/Hussy.Net.Logic/Program.cs @@ -0,0 +1,9 @@ +// Print all even numbers from 1 to 10. +// The function EV takes in a numeric value +// and determines if it is even or not. +R(10).F(EV).E(W); + +// Print all odd numbers from 1 to 10. +// The function OD takes in a numeric value +// and determines if it is odd or not. +R(10).F(OD).E(W); \ No newline at end of file