initial commit
This commit is contained in:
@@ -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>
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace ParadoxSaveParser.Lib;
|
||||
|
||||
public class ParserEU4 : Parser
|
||||
{
|
||||
public ParserEU4(Stream savefile) : base(savefile)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user