Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SpGerg committed May 12, 2024
1 parent 9020089 commit 1e1e83b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Paganism/PParser/AST/BinaryOperatorExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ private Value Point()

if (Left is VariableExpression leftVariableExpression && Right is FunctionCallExpression functionCallExpression)
{
//thats part of foxworn code, this is code broken.
//it will be broke somethjing if im delete code?
/*
Dictionary<string, dynamic> InternalFunctionExtension;
Expand Down
3 changes: 2 additions & 1 deletion Paganism/PParser/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Paganism.PParser.AST.Enums;
using Paganism.PParser.AST.Interfaces;
using Paganism.PParser.Values;
using Paganism.Structures;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -319,7 +320,7 @@ private StructureMemberExpression ParseStructureMember(string structureName)
}

var member = new StructureMemberExpression(new ExpressionInfo(_parent, Current.Line, Current.Position, Filepath), structureName, new TypeValue(new ExpressionInfo(_parent, Current.Line, Current.Position, Filepath),
Lexer.Tokens.TokenTypeToValueType[current], type.TypeName), memberName, isShow, isReadOnly, isCastable);
Lexer.Tokens.TokenTypeToValueType[current], type.TypeName), memberName, new StructureMemberInfo(false, null, isReadOnly, isShow, isCastable, false));

return !Match(TokenType.Semicolon) ? throw new ParserException("Except ';'.", Current.Line, Current.Position) : member;
}
Expand Down
Binary file modified Thirdparty/Paganism/Paganism.dll
Binary file not shown.

0 comments on commit 1e1e83b

Please sign in to comment.