Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix Calculator done - kindof #32

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

FearlessWolwo
Copy link

No description provided.

Copy link
Contributor

@webmaster442 webmaster442 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Szép munka. A program.cs-en lehetne egy picit szépíteni, illetve .NET 8 óta lehet Regex-et kód generáltatni: https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-source-generators


namespace GTQPL7.Classes;

public record Matrix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mivel implementál operátorokat, érdemes lehetne rátenni a Generic Math Interfészekből a megfelelőket

@@ -0,0 +1,6 @@
namespace GTQPL7.Exceptions;

public class RpnEvaluatorException : Exception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception esetén ajánlás, hogy ugyan annyi konstruktora legyen, mint a base osztálynak. VS-ben a CTRL + . menüből ki lehet őket generálni.

@@ -0,0 +1,6 @@
namespace GTQPL7.Exceptions;

public class SymbolSorterException : Exception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception esetén ajánlás, hogy ugyan annyi konstruktora legyen, mint a base osztálynak. VS-ben a CTRL + . menüből ki lehet őket generálni.

@@ -0,0 +1,6 @@
namespace GTQPL7.Utils.TokenConverter;

public class TokenConverterException : Exception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception esetén ajánlás, hogy ugyan annyi konstruktora legyen, mint a base osztálynak. VS-ben a CTRL + . menüből ki lehet őket generálni.


public class TokenizerException : Exception
{
public TokenizerException(string message) : base(message) { }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception esetén ajánlás, hogy ugyan annyi konstruktora legyen, mint a base osztálynak. VS-ben a CTRL + . menüből ki lehet őket generálni.


public class Tokenizer : ITokenizer
{
private const string IntegerRegex = "0|[1-9][0-9]*";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ez greedy match-el a * miatt. Érdemes lenne leclampelni egy maximum hosszra.

[TestFixture]
public class MatrixTests
{

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Szándékosan üres?

@@ -1,38 +1,15 @@
# SZTE egyetemi kurzus, 2024 Őszi félév házi feleadat repó
# Matrix Calculator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dokumentáció 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants