-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) { } |
There was a problem hiding this comment.
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]*"; |
There was a problem hiding this comment.
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 | ||
{ | ||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dokumentáció 👍
No description provided.