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 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