initial commit

This commit is contained in:
2025-03-20 11:54:08 +05:00
commit 68ae9540ad
11 changed files with 247 additions and 0 deletions
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
</Project>
+27
View File
@@ -0,0 +1,27 @@
namespace ParadoxSaveParser.Lib;
public abstract class Parser
{
protected Stream _saveFile;
protected Parser(Stream savefile)
{
_saveFile = savefile;
}
protected enum TokenType
{
Invalid, String, Equals, BracketOpen, BracketClose,
}
protected struct Token
{
public TokenType type;
public string? value;
}
protected void BuildAST()
{
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace ParadoxSaveParser.Lib;
public class ParserEU4 : Parser
{
public ParserEU4(Stream savefile) : base(savefile)
{
}
}