From 45a49acb353b8af2aeb24c16e8f3a19f36b574e9 Mon Sep 17 00:00:00 2001 From: Semenov Dmitry Date: Fri, 26 Jan 2024 21:46:51 +0400 Subject: [PATCH 1/2] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65a0d40..587447c 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ GDShrapt.Reader allows to build a lexical tree or generate a new code from scrat ### How to install -Currently the latest **4.1.3-alpha version** from [Nuget](https://www.nuget.org/packages/GDShrapt.Reader). +Currently the latest **4.1.4-alpha version** from [Nuget](https://www.nuget.org/packages/GDShrapt.Reader). Installation from Nuget console: ``` -Install-Package GDShrapt.Reader -Version 4.1.3-alpha +Install-Package GDShrapt.Reader -Version 4.1.4-alpha ``` ## Capabilities, plan and what can be parsed @@ -62,6 +62,9 @@ Install-Package GDShrapt.Reader -Version 4.1.3-alpha ## Last updates +#### 4.1.4-alpha +Fixed dictionary with assignment parsing + #### 4.1.3-alpha Fixed statics parsing From ebabbd997bc5a5b4f82a94184369bf15278ccf0a Mon Sep 17 00:00:00 2001 From: Semenov Dmitry Date: Sun, 28 Jan 2024 01:32:08 +0400 Subject: [PATCH 2/2] Small fix --- .../Declarations/GDDictionaryKeyValueDeclaration.cs | 4 ++-- src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs | 4 ++-- src/GDShrapt.Reader/GDShrapt.Reader.csproj | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs b/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs index 6813975..e577dc3 100644 --- a/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs +++ b/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs @@ -14,12 +14,12 @@ public GDExpression Key } public GDColon Colon { - get => (GDColon)_form.Token1; + get => _form.Token1 as GDColon; set => _form.Token1 = value; } public GDAssign Assign { - get => (GDAssign)_form.Token1; + get => _form.Token1 as GDAssign; set => _form.Token1 = value; } public GDExpression Value diff --git a/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs b/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs index 8170b72..4ecc3ba 100644 --- a/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs +++ b/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs @@ -15,12 +15,12 @@ public GDIdentifier Identifier } public GDColon Colon { - get => (GDColon)_form.Token1; + get => _form.Token1 as GDColon; set => _form.Token1 = value; } public GDAssign Assign { - get => (GDAssign)_form.Token1; + get => _form.Token1 as GDAssign; set => _form.Token1 = value; } public GDExpression Value diff --git a/src/GDShrapt.Reader/GDShrapt.Reader.csproj b/src/GDShrapt.Reader/GDShrapt.Reader.csproj index c91119b..f04ebff 100644 --- a/src/GDShrapt.Reader/GDShrapt.Reader.csproj +++ b/src/GDShrapt.Reader/GDShrapt.Reader.csproj @@ -3,7 +3,7 @@ netstandard2.0 true - 4.1.4-alpha + 4.1.5-alpha elamaunt GDShrapt GDShrapt.Reader is .Net library and object-oriented one-pass parser of GDScript. It can build a lexical tree of GDScript code or generate a new code from scratch. @@ -16,8 +16,8 @@ Usage: Just create a GDScriptReader instance and call methods from it.https://github.com/elamaunt/GDShrapt git GDShrapt GDScript reader parser codegeneration Godot lexical analyzer - 4.1.4 - 4.1.4 + 4.1.5 + 4.1.5 true