This commit is contained in:
2025-09-16 20:21:59 -04:00
parent 2b54693ae4
commit 9a99fc857b
24 changed files with 113 additions and 54 deletions

View File

@@ -2,15 +2,27 @@
public class Lexer
{
public static readonly String[] keywords =
{
"using", "as", "namespace", "struct", "class",
"var", "void", "return", "if", "else",
"for", "while", "null", "repeat", "break",
"true", "false"
};
public static readonly string[] Operations =
{
"==", "!=", "<=", ">=", "&&",
"++", "--", "+", "-", "/",
"*"
};
public static Data.AstNode Lex(Data.FsNode node)
{
var path = node.getName();
var ast = new Data.AstNode("file", path);
var content = node.getContents();
while (true)
{
break;
}
return ast;
}
}

View File

@@ -21,10 +21,6 @@ class ZDelta
}
else if (args[0] == "-c" | args[0] == "--compile")
{
if (args.Length < 2)
{
Console.WriteLine("Must specify compile path.");
}
Compile(args);
}
else

View File

@@ -4,6 +4,7 @@
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AArgumentNullException_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F7fcc41fe48c43f71d1476329de953fce8565fcc5dbf3c8c6fdb81c216b19c4_003FArgumentNullException_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AArgumentOutOfRangeException_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F72e5853ed6f2c1967eff9d6f0cf6ba12744c8978c516cbc5e74d992944ab_003FArgumentOutOfRangeException_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AEncoding_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F67ebf210a4bac0747df5febc8332ccaba90acb21287798fde37a06d8eb942b_003FEncoding_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AEnumerable_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Evar_003Fapp_003Fcom_002Ejetbrains_002ERider_003Fconfig_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F8ed1608bd965492f92bccd15319d47e87ee00_003Fc3_003Fd6c68582_003FEnumerable_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AFileStreamHelpers_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F38fcfb90f03aac28aa0eeb011baeda171a426f31fab4785791e3a4afb75a2_003FFileStreamHelpers_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AFileStream_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003Fb25d397b2262b35562bbb5e860d97a5dfab6d6ed3ac39617f252ad2ce1f3f8_003FFileStream_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AFileSystemEnumerator_002EWindows_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F422299c1e1233f1a20b8c0654281f74792424fe87e29abaf4ecfcd0cd64d718_003FFileSystemEnumerator_002EWindows_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>

BIN
ZDelta/bin/Debug/net8.0/ZDelta Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ZDelta")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eca268929f4466e6c876427a3f016797763ed22d")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2b54693ae46e74068e7d6e1fa7c97d181f144d3a")]
[assembly: System.Reflection.AssemblyProductAttribute("ZDelta")]
[assembly: System.Reflection.AssemblyTitleAttribute("ZDelta")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
3af62a5a512493f47e56ed23faf5ae272607fc27bd3d1cc5846d7c4c6a2c4f97
db11c2727ed923b3112ec48023005519d723dbcaa6675ad8a9770f962c482de5

View File

@@ -8,6 +8,8 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = ZDelta
build_property.ProjectDir = C:\Users\007872181\Projects\ZDelta\ZDelta\
build_property.ProjectDir = /home/astronand/ZDelta/ZDelta/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 8.0
build_property.EnableCodeStyleSeverity =

View File

@@ -1 +1 @@
df0e3fb0948a09a0ed366d4419e7b3939f245c5a4ef14bff3afa8a1d22fc773d
2fe7fcb0eeca4ef036c19d2fd5e9bd4816f5b52c463c232698d053655b9b8159

View File

@@ -1,14 +1,28 @@
C:\Users\007872181\Projects\ZDelta\ZDelta\bin\Debug\net8.0\ZDelta.exe
C:\Users\007872181\Projects\ZDelta\ZDelta\bin\Debug\net8.0\ZDelta.deps.json
C:\Users\007872181\Projects\ZDelta\ZDelta\bin\Debug\net8.0\ZDelta.runtimeconfig.json
C:\Users\007872181\Projects\ZDelta\ZDelta\bin\Debug\net8.0\ZDelta.dll
C:\Users\007872181\Projects\ZDelta\ZDelta\bin\Debug\net8.0\ZDelta.pdb
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.AssemblyInfoInputs.cache
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.AssemblyInfo.cs
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.csproj.CoreCompileInputs.cache
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.dll
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\refint\ZDelta.dll
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.pdb
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ZDelta.genruntimeconfig.cache
C:\Users\007872181\Projects\ZDelta\ZDelta\obj\Debug\net8.0\ref\ZDelta.dll
C:/Users/007872181/Projects/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.exe
C:/Users/007872181/Projects/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.deps.json
C:/Users/007872181/Projects/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.runtimeconfig.json
C:/Users/007872181/Projects/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.dll
C:/Users/007872181/Projects/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.pdb
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.GeneratedMSBuildEditorConfig.editorconfig
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.AssemblyInfoInputs.cache
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.AssemblyInfo.cs
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.csproj.CoreCompileInputs.cache
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.dll
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/refint/ZDelta.dll
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.pdb
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.genruntimeconfig.cache
C:/Users/007872181/Projects/ZDelta/ZDelta/obj/Debug/net8.0/ref/ZDelta.dll
/home/astronand/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta
/home/astronand/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.deps.json
/home/astronand/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.runtimeconfig.json
/home/astronand/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.dll
/home/astronand/ZDelta/ZDelta/bin/Debug/net8.0/ZDelta.pdb
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.GeneratedMSBuildEditorConfig.editorconfig
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.AssemblyInfoInputs.cache
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.AssemblyInfo.cs
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.csproj.CoreCompileInputs.cache
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.dll
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/refint/ZDelta.dll
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.pdb
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ZDelta.genruntimeconfig.cache
/home/astronand/ZDelta/ZDelta/obj/Debug/net8.0/ref/ZDelta.dll

Binary file not shown.

View File

@@ -1 +1 @@
5710d91b5190194bd0929f18cb3a81dbbd857568b00f645e3e27699333c0d5d9
fa1a64f90ad6122dc0abd67db5ed47401075623dc3f0f595022e45d1d54caf00

Binary file not shown.

View File

@@ -1,20 +1,20 @@
{
"format": 1,
"restore": {
"C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj": {}
"/home/astronand/ZDelta/ZDelta/ZDelta.csproj": {}
},
"projects": {
"C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj": {
"/home/astronand/ZDelta/ZDelta/ZDelta.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj",
"projectUniqueName": "/home/astronand/ZDelta/ZDelta/ZDelta.csproj",
"projectName": "ZDelta",
"projectPath": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj",
"packagesPath": "C:\\Users\\007872181\\.nuget\\packages\\",
"outputPath": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\obj\\",
"projectPath": "/home/astronand/ZDelta/ZDelta/ZDelta.csproj",
"packagesPath": "/home/astronand/.nuget/packages/",
"outputPath": "/home/astronand/ZDelta/ZDelta/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\007872181\\AppData\\Roaming\\NuGet\\NuGet.Config"
"/home/astronand/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
@@ -37,7 +37,8 @@
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"SdkAnalysisLevel": "9.0.300"
},
"frameworks": {
"net8.0": {
@@ -53,12 +54,26 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.18, 8.0.18]"
},
{
"name": "Microsoft.NETCore.App.Host.linux-x64",
"version": "[8.0.18, 8.0.18]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[8.0.18, 8.0.18]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Users\\007872181\\.dotnet\\sdk\\8.0.413/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/home/astronand/.dotnet/sdk/9.0.303/PortableRuntimeIdentifierGraph.json"
}
}
}

View File

@@ -4,12 +4,12 @@
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\007872181\.nuget\packages\</NuGetPackageFolders>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/astronand/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/astronand/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.13.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\007872181\.nuget\packages\" />
<SourceRoot Include="/home/astronand/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -8,19 +8,19 @@
"net8.0": []
},
"packageFolders": {
"C:\\Users\\007872181\\.nuget\\packages\\": {}
"/home/astronand/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj",
"projectUniqueName": "/home/astronand/ZDelta/ZDelta/ZDelta.csproj",
"projectName": "ZDelta",
"projectPath": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj",
"packagesPath": "C:\\Users\\007872181\\.nuget\\packages\\",
"outputPath": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\obj\\",
"projectPath": "/home/astronand/ZDelta/ZDelta/ZDelta.csproj",
"packagesPath": "/home/astronand/.nuget/packages/",
"outputPath": "/home/astronand/ZDelta/ZDelta/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\007872181\\AppData\\Roaming\\NuGet\\NuGet.Config"
"/home/astronand/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
@@ -43,7 +43,8 @@
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"SdkAnalysisLevel": "9.0.300"
},
"frameworks": {
"net8.0": {
@@ -59,12 +60,26 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[8.0.18, 8.0.18]"
},
{
"name": "Microsoft.NETCore.App.Host.linux-x64",
"version": "[8.0.18, 8.0.18]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[8.0.18, 8.0.18]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Users\\007872181\\.dotnet\\sdk\\8.0.413/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/home/astronand/.dotnet/sdk/9.0.303/PortableRuntimeIdentifierGraph.json"
}
}
}

View File

@@ -1,8 +1,12 @@
{
"version": 2,
"dgSpecHash": "pjNyVwo5KXc=",
"dgSpecHash": "b9BQBk0WL2c=",
"success": true,
"projectFilePath": "C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj",
"expectedPackageFiles": [],
"projectFilePath": "/home/astronand/ZDelta/ZDelta/ZDelta.csproj",
"expectedPackageFiles": [
"/home/astronand/.nuget/packages/microsoft.netcore.app.ref/8.0.18/microsoft.netcore.app.ref.8.0.18.nupkg.sha512",
"/home/astronand/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.18/microsoft.aspnetcore.app.ref.8.0.18.nupkg.sha512",
"/home/astronand/.nuget/packages/microsoft.netcore.app.host.linux-x64/8.0.18/microsoft.netcore.app.host.linux-x64.8.0.18.nupkg.sha512"
],
"logs": []
}

View File

@@ -1 +1 @@
"restore":{"projectUniqueName":"C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj","projectName":"ZDelta","projectPath":"C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\ZDelta.csproj","outputPath":"C:\\Users\\007872181\\Projects\\ZDelta\\ZDelta\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Users\\007872181\\.dotnet\\sdk\\8.0.413/PortableRuntimeIdentifierGraph.json"}}
"restore":{"projectUniqueName":"/home/astronand/ZDelta/ZDelta/ZDelta.csproj","projectName":"ZDelta","projectPath":"/home/astronand/ZDelta/ZDelta/ZDelta.csproj","outputPath":"/home/astronand/ZDelta/ZDelta/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"},"SdkAnalysisLevel":"9.0.300"}"frameworks":{"net8.0":{"targetAlias":"net8.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"downloadDependencies":[{"name":"Microsoft.AspNetCore.App.Ref","version":"[8.0.18, 8.0.18]"},{"name":"Microsoft.NETCore.App.Host.linux-x64","version":"[8.0.18, 8.0.18]"},{"name":"Microsoft.NETCore.App.Ref","version":"[8.0.18, 8.0.18]"}],"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/astronand/.dotnet/sdk/9.0.303/PortableRuntimeIdentifierGraph.json"}}

View File

@@ -1 +1 @@
17580225686570976
17580633837024853

View File

@@ -1 +1 @@
17580225686570976
17580633934755013