Skip to content

Commit 029662b

Browse files
committed
Separation
Separation of the application and the library
1 parent 9d5f23a commit 029662b

File tree

14 files changed

+132
-31
lines changed

14 files changed

+132
-31
lines changed

Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<LangVersion>latestMajor</LangVersion>
5+
</PropertyGroup>
6+
</Project>

EvalFinale.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.30907.101
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EvalFinale", "EvalFinale\EvalFinale.csproj", "{93543486-2D7B-40BA-B266-16CF59E9277B}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TranslatorLibrary", "TranslatorLibrary\TranslatorLibrary.csproj", "{015A118B-0F9F-4883-8770-5EACA35E011F}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
1517
{93543486-2D7B-40BA-B266-16CF59E9277B}.Debug|Any CPU.Build.0 = Debug|Any CPU
1618
{93543486-2D7B-40BA-B266-16CF59E9277B}.Release|Any CPU.ActiveCfg = Release|Any CPU
1719
{93543486-2D7B-40BA-B266-16CF59E9277B}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{015A118B-0F9F-4883-8770-5EACA35E011F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{015A118B-0F9F-4883-8770-5EACA35E011F}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{015A118B-0F9F-4883-8770-5EACA35E011F}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{015A118B-0F9F-4883-8770-5EACA35E011F}.Release|Any CPU.Build.0 = Release|Any CPU
1824
EndGlobalSection
1925
GlobalSection(SolutionProperties) = preSolution
2026
HideSolutionNode = FALSE

EvalFinale/Analyzer/ILanguage.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

EvalFinale/EvalFinale.csproj

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<Deterministic>true</Deterministic>
15-
<LangVersion>latestMajor</LangVersion>
1615
</PropertyGroup>
1716
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1817
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -47,23 +46,21 @@
4746
</Reference>
4847
</ItemGroup>
4948
<ItemGroup>
50-
<Compile Include="Analyzer\Analyze.cs" />
51-
<Compile Include="Analyzer\ILanguage.cs" />
52-
<Compile Include="Grammar\Rule.cs" />
53-
<Compile Include="Grammar\Symbol.cs" />
54-
<Compile Include="Analyzer\Node.cs" />
5549
<Compile Include="Program.cs" />
5650
<Compile Include="Properties\AssemblyInfo.cs" />
57-
<Compile Include="Traductor.cs" />
5851
</ItemGroup>
5952
<ItemGroup>
6053
<None Include="App.config" />
6154
</ItemGroup>
6255
<ItemGroup>
6356
<Content Include="bin\Debug\Traduction.xml" />
6457
<Content Include="bin\Release\Traduction.xml" />
65-
<Content Include="Traduction.xml" />
6658
</ItemGroup>
67-
<ItemGroup />
59+
<ItemGroup>
60+
<ProjectReference Include="..\TranslatorLibrary\TranslatorLibrary.csproj">
61+
<Project>{015a118b-0f9f-4883-8770-5eaca35e011f}</Project>
62+
<Name>TranslatorLibrary</Name>
63+
</ProjectReference>
64+
</ItemGroup>
6865
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6966
</Project>

EvalFinale/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using EvalFinale.Analyzer;
5-
using EvalFinale.Grammar;
4+
using TranslatorLibrary;
5+
using TranslatorLibrary.Analyzer;
6+
using TranslatorLibrary.Grammar;
67
using XmlJsonManager.Xml;
78

89
namespace EvalFinale
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using EvalFinale.Grammar;
4+
using TranslatorLibrary.Grammar;
5+
using static TranslatorLibrary.Traductor;
56

6-
using static EvalFinale.Traductor;
7-
8-
namespace EvalFinale.Analyzer
7+
namespace TranslatorLibrary.Analyzer
98
{
109
public static class Analyze
1110
{
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Collections.Generic;
2+
3+
namespace TranslatorLibrary.Analyzer
4+
{
5+
public interface ILanguage
6+
{
7+
(List<string>, List<string>) LexicalAnalysis(string code);
8+
9+
}
10+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
2-
using EvalFinale.Grammar;
2+
using TranslatorLibrary.Grammar;
33

4-
namespace EvalFinale.Analyzer
4+
namespace TranslatorLibrary.Analyzer
55
{
66
public class Node
77
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace EvalFinale.Grammar
1+
namespace TranslatorLibrary.Grammar
22
{
33
public class Rule
44
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace EvalFinale.Grammar
1+
namespace TranslatorLibrary.Grammar
22
{
33
public class Symbol
44
{

0 commit comments

Comments
 (0)