Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions compiler.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "compiler", "compiler\compiler.csproj", "{E36541F6-34AC-4D54-AF2A-472FAA70FD82}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Compiler", "compiler\Compiler.csproj", "{E36541F6-34AC-4D54-AF2A-472FAA70FD82}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "console", "console\console.csproj", "{2A56CC3F-8632-4379-B0F4-1B208BF6721A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Console", "console\Console.csproj", "{2A56CC3F-8632-4379-B0F4-1B208BF6721A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -16,9 +16,6 @@ Global
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E36541F6-34AC-4D54-AF2A-472FAA70FD82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E36541F6-34AC-4D54-AF2A-472FAA70FD82}.Debug|Any CPU.Build.0 = Debug|Any CPU
Expand All @@ -45,4 +42,10 @@ Global
{2A56CC3F-8632-4379-B0F4-1B208BF6721A}.Release|x86.ActiveCfg = Release|Any CPU
{2A56CC3F-8632-4379-B0F4-1B208BF6721A}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E34D16E8-7BB8-4B5F-B1D7-A355F69C8560}
EndGlobalSection
EndGlobal
7 changes: 7 additions & 0 deletions compiler/Compiler.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

</Project>
50 changes: 50 additions & 0 deletions compiler/CompilerCode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
namespace Compiler
{
internal enum CompilerCode
{
Abreprog = 1,
Fechaprog = 2,
AbrePar = 3,
FechaPar = 4,
Id = 5,
Numero = 6,
Cabo = 7,
Memostra = 8,
Mecaptura = 9,
Vira = 10,
Soma = 11,
Subtrai = 12,
Divide = 13,
Multiplica = 14,
Menor = 15,
Menorigual = 16,
Diferente = 17,

Merepete = 18,
RepeteDe = 19,
RepetePara = 20,
AbreBloco = 21,
FechaBloco = 22,

Maior = 23,
Maiorigual = 24,
Igual = 25,

Mecompara = 26,
Entao = 27,
Senao = 28,

Mecontinua = 29,

FimFonte = 90,
ErroLex = 98,
Nulo = 99,

ESemErros = 1,
EErroLexico = 2,
EErroSintatico = 3,
EErroSemantico = 4,

FimArquivo = 26,
}
}
50 changes: 0 additions & 50 deletions compiler/CompilerCodes.cs

This file was deleted.

Loading