Skip to content

Commit a9e9584

Browse files
#TDP - 15 Windows Form
Translate program from command line to WF Add Class Reverse Polish Notation
1 parent b6b14bc commit a9e9584

14 files changed

+543
-151
lines changed

MethodsDevelopmentTranslator.cpp

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

MethodsDevelopmentTranslator.sln

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.28803.202
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MethodsDevelopmentTranslator", "MethodsDevelopmentTranslator.vcxproj", "{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MethodsDevelopmentTranslator", "MethodsDevelopmentTranslator.vcxproj", "{A6408537-5D3A-498A-8CCF-6EE1BB457710}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -13,19 +13,19 @@ Global
1313
Release|x86 = Release|x86
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Debug|x64.ActiveCfg = Debug|x64
17-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Debug|x64.Build.0 = Debug|x64
18-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Debug|x86.ActiveCfg = Debug|Win32
19-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Debug|x86.Build.0 = Debug|Win32
20-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Release|x64.ActiveCfg = Release|x64
21-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Release|x64.Build.0 = Release|x64
22-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Release|x86.ActiveCfg = Release|Win32
23-
{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}.Release|x86.Build.0 = Release|Win32
16+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Debug|x64.ActiveCfg = Debug|x64
17+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Debug|x64.Build.0 = Debug|x64
18+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Debug|x86.ActiveCfg = Debug|Win32
19+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Debug|x86.Build.0 = Debug|Win32
20+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Release|x64.ActiveCfg = Release|x64
21+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Release|x64.Build.0 = Release|x64
22+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Release|x86.ActiveCfg = Release|Win32
23+
{A6408537-5D3A-498A-8CCF-6EE1BB457710}.Release|x86.Build.0 = Release|Win32
2424
EndGlobalSection
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ExtensibilityGlobals) = postSolution
29-
SolutionGuid = {850D1684-DEE0-4284-8691-0B62914CDE40}
29+
SolutionGuid = {35248584-A708-4B3F-8D42-D2E7A2F23DEE}
3030
EndGlobalSection
3131
EndGlobal

MethodsDevelopmentTranslator.vcxproj

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
</ItemGroup>
2121
<PropertyGroup Label="Globals">
2222
<VCProjectVersion>16.0</VCProjectVersion>
23-
<ProjectGuid>{9BE44CA6-D4C9-4FCC-A694-0D2051AFE44B}</ProjectGuid>
24-
<Keyword>Win32Proj</Keyword>
23+
<ProjectGuid>{A6408537-5D3A-498A-8CCF-6EE1BB457710}</ProjectGuid>
24+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
25+
<Keyword>ManagedCProj</Keyword>
2526
<RootNamespace>MethodsDevelopmentTranslator</RootNamespace>
2627
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
2728
</PropertyGroup>
@@ -30,26 +31,28 @@
3031
<ConfigurationType>Application</ConfigurationType>
3132
<UseDebugLibraries>true</UseDebugLibraries>
3233
<PlatformToolset>v142</PlatformToolset>
34+
<CLRSupport>true</CLRSupport>
3335
<CharacterSet>Unicode</CharacterSet>
3436
</PropertyGroup>
3537
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3638
<ConfigurationType>Application</ConfigurationType>
3739
<UseDebugLibraries>false</UseDebugLibraries>
3840
<PlatformToolset>v142</PlatformToolset>
39-
<WholeProgramOptimization>true</WholeProgramOptimization>
41+
<CLRSupport>true</CLRSupport>
4042
<CharacterSet>Unicode</CharacterSet>
4143
</PropertyGroup>
4244
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4345
<ConfigurationType>Application</ConfigurationType>
4446
<UseDebugLibraries>true</UseDebugLibraries>
4547
<PlatformToolset>v142</PlatformToolset>
48+
<CLRSupport>true</CLRSupport>
4649
<CharacterSet>Unicode</CharacterSet>
4750
</PropertyGroup>
4851
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4952
<ConfigurationType>Application</ConfigurationType>
5053
<UseDebugLibraries>false</UseDebugLibraries>
5154
<PlatformToolset>v142</PlatformToolset>
52-
<WholeProgramOptimization>true</WholeProgramOptimization>
55+
<CLRSupport>true</CLRSupport>
5356
<CharacterSet>Unicode</CharacterSet>
5457
</PropertyGroup>
5558
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
@@ -84,88 +87,74 @@
8487
</PropertyGroup>
8588
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
8689
<ClCompile>
87-
<PrecompiledHeader>
88-
</PrecompiledHeader>
8990
<WarningLevel>Level3</WarningLevel>
9091
<Optimization>Disabled</Optimization>
91-
<SDLCheck>true</SDLCheck>
92-
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
93-
<ConformanceMode>true</ConformanceMode>
92+
<PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
9493
</ClCompile>
9594
<Link>
96-
<SubSystem>Console</SubSystem>
97-
<GenerateDebugInformation>true</GenerateDebugInformation>
95+
<AdditionalDependencies />
96+
<EntryPointSymbol>main</EntryPointSymbol>
97+
<SubSystem>Windows</SubSystem>
9898
</Link>
9999
</ItemDefinitionGroup>
100100
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
101101
<ClCompile>
102-
<PrecompiledHeader>
103-
</PrecompiledHeader>
104102
<WarningLevel>Level3</WarningLevel>
105103
<Optimization>Disabled</Optimization>
106-
<SDLCheck>true</SDLCheck>
107-
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
108-
<ConformanceMode>true</ConformanceMode>
104+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
109105
</ClCompile>
110106
<Link>
111-
<SubSystem>Console</SubSystem>
112-
<GenerateDebugInformation>true</GenerateDebugInformation>
107+
<AdditionalDependencies />
108+
<SubSystem>Windows</SubSystem>
109+
<EntryPointSymbol>main</EntryPointSymbol>
113110
</Link>
114111
</ItemDefinitionGroup>
115112
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
116113
<ClCompile>
117-
<PrecompiledHeader>
118-
</PrecompiledHeader>
119114
<WarningLevel>Level3</WarningLevel>
120-
<Optimization>MaxSpeed</Optimization>
121-
<FunctionLevelLinking>true</FunctionLevelLinking>
122-
<IntrinsicFunctions>true</IntrinsicFunctions>
123-
<SDLCheck>true</SDLCheck>
124-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
125-
<ConformanceMode>true</ConformanceMode>
115+
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
126116
</ClCompile>
127117
<Link>
128-
<SubSystem>Console</SubSystem>
129-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
130-
<OptimizeReferences>true</OptimizeReferences>
131-
<GenerateDebugInformation>true</GenerateDebugInformation>
118+
<AdditionalDependencies />
132119
</Link>
133120
</ItemDefinitionGroup>
134121
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
135122
<ClCompile>
136-
<PrecompiledHeader>
137-
</PrecompiledHeader>
138123
<WarningLevel>Level3</WarningLevel>
139-
<Optimization>MaxSpeed</Optimization>
140-
<FunctionLevelLinking>true</FunctionLevelLinking>
141-
<IntrinsicFunctions>true</IntrinsicFunctions>
142-
<SDLCheck>true</SDLCheck>
143-
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
144-
<ConformanceMode>true</ConformanceMode>
124+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
145125
</ClCompile>
146126
<Link>
147-
<SubSystem>Console</SubSystem>
148-
<EnableCOMDATFolding>true</EnableCOMDATFolding>
149-
<OptimizeReferences>true</OptimizeReferences>
150-
<GenerateDebugInformation>true</GenerateDebugInformation>
127+
<AdditionalDependencies />
151128
</Link>
152129
</ItemDefinitionGroup>
130+
<ItemGroup>
131+
<Reference Include="System" />
132+
<Reference Include="System.Data" />
133+
<Reference Include="System.Drawing" />
134+
<Reference Include="System.Windows.Forms" />
135+
<Reference Include="System.Xml" />
136+
</ItemGroup>
153137
<ItemGroup>
154138
<ClCompile Include="function.cpp" />
155-
<ClCompile Include="MethodsDevelopmentTranslator.cpp" />
139+
<ClCompile Include="ReversePolishNotation.cpp" />
156140
<ClCompile Include="SyntaxAnalisator.cpp" />
157141
<ClCompile Include="Translator.cpp" />
158-
</ItemGroup>
159-
<ItemGroup>
160-
<Text Include="C.txt" />
161-
<Text Include="lexical.txt" />
142+
<ClCompile Include="Translator_LanguageC.cpp" />
162143
</ItemGroup>
163144
<ItemGroup>
164145
<ClInclude Include="function.h" />
165-
<ClInclude Include="SyntaxAnalisator.h" />
166-
<ClInclude Include="table.h" />
167146
<ClInclude Include="include.h" />
147+
<ClInclude Include="ReversePolishNotation.h" />
148+
<ClInclude Include="SyntaxAnalisator.h" />
168149
<ClInclude Include="Translator.h" />
150+
<ClInclude Include="Translator_LanguageC.h">
151+
<FileType>CppForm</FileType>
152+
</ClInclude>
153+
</ItemGroup>
154+
<ItemGroup>
155+
<EmbeddedResource Include="Translator_LanguageC.resx">
156+
<DependentUpon>Translator_LanguageC.h</DependentUpon>
157+
</EmbeddedResource>
169158
</ItemGroup>
170159
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
171160
<ImportGroup Label="ExtensionTargets">

MethodsDevelopmentTranslator.vcxproj.filters

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,39 @@
1515
</Filter>
1616
</ItemGroup>
1717
<ItemGroup>
18-
<ClCompile Include="MethodsDevelopmentTranslator.cpp">
18+
<ClCompile Include="Translator_LanguageC.cpp">
1919
<Filter>Исходные файлы</Filter>
2020
</ClCompile>
2121
<ClCompile Include="function.cpp">
2222
<Filter>Исходные файлы</Filter>
2323
</ClCompile>
24+
<ClCompile Include="SyntaxAnalisator.cpp">
25+
<Filter>Исходные файлы</Filter>
26+
</ClCompile>
2427
<ClCompile Include="Translator.cpp">
2528
<Filter>Исходные файлы</Filter>
2629
</ClCompile>
27-
<ClCompile Include="SyntaxAnalisator.cpp">
30+
<ClCompile Include="ReversePolishNotation.cpp">
2831
<Filter>Исходные файлы</Filter>
2932
</ClCompile>
3033
</ItemGroup>
3134
<ItemGroup>
32-
<Text Include="C.txt">
35+
<ClInclude Include="Translator_LanguageC.h">
3336
<Filter>Исходные файлы</Filter>
34-
</Text>
35-
<Text Include="lexical.txt">
36-
<Filter>Файлы ресурсов</Filter>
37-
</Text>
38-
</ItemGroup>
39-
<ItemGroup>
40-
<ClInclude Include="include.h">
37+
</ClInclude>
38+
<ClInclude Include="function.h">
4139
<Filter>Файлы заголовков</Filter>
4240
</ClInclude>
43-
<ClInclude Include="table.h">
41+
<ClInclude Include="include.h">
4442
<Filter>Файлы заголовков</Filter>
4543
</ClInclude>
46-
<ClInclude Include="function.h">
44+
<ClInclude Include="SyntaxAnalisator.h">
4745
<Filter>Файлы заголовков</Filter>
4846
</ClInclude>
4947
<ClInclude Include="Translator.h">
5048
<Filter>Файлы заголовков</Filter>
5149
</ClInclude>
52-
<ClInclude Include="SyntaxAnalisator.h">
50+
<ClInclude Include="ReversePolishNotation.h">
5351
<Filter>Файлы заголовков</Filter>
5452
</ClInclude>
5553
</ItemGroup>

ReversePolishNotation.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "ReversePolishNotation.h"
2+
#include "function.h"
3+
4+
ReversePolishNotation::ReversePolishNotation()
5+
{
6+
}
7+
ReversePolishNotation::~ReversePolishNotation()
8+
{
9+
}

ReversePolishNotation.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
#ifndef REVERSEPOLISHNOTATION_H
3+
#define REVERSEPOLISHNOTATION_H
4+
#include "Translator.h"
5+
6+
class ReversePolishNotation : public Translator
7+
{
8+
public:
9+
ReversePolishNotation();
10+
~ReversePolishNotation();
11+
};
12+
13+
#endif

0 commit comments

Comments
 (0)