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

Рушкова Ольга #225

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

SomEnaMeforme
Copy link

Add class structure

Copy link

@HELLoWorlD01100 HELLoWorlD01100 left a comment

Choose a reason for hiding this comment

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

По моделькам вроде понятно(см. комментарии)
По сервисам и их взаимодействию пока не очень

{
public class TokenReader
{
private string forRead;

Choose a reason for hiding this comment

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

Непонятно что это

Copy link
Author

Choose a reason for hiding this comment

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

Подразумевалась строка. вдоль которой идёт Reader

{
throw new NotImplementedException();
}
protected abstract bool AcceptWhileContextCorrect(char current);

Choose a reason for hiding this comment

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

А как в этом случае будут отлавливаться пересекающиеся теги? Каждый тег будет содержать в себе логику, что он может содержать эти теги? Нерасширяемо

Copy link
Author

Choose a reason for hiding this comment

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

+

{
protected Token context;
protected abstract string mdTag { get; }
protected abstract string htmlTag { get; }

Choose a reason for hiding this comment

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

html тег состоит из начала и конца

Copy link
Author

@SomEnaMeforme SomEnaMeforme Nov 29, 2024

Choose a reason for hiding this comment

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

Удалила из значения треугольные скобки в RenderHtml уже буду посдставлять что-то вроде $"<{htmlTag}>{внутренняя строка}<\{htmlTag}>"

Comment on lines 11 to 14
public int Position { get; }
public int Length { get; }

private string source;

Choose a reason for hiding this comment

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

Значения нигде не задаются

Copy link
Author

Choose a reason for hiding this comment

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

Добавила везде конструкторы

private string forRead;
public int Position { get; }

public Token ReadWhile(Func<char, bool> accept)

Choose a reason for hiding this comment

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

А как он о тегах будет узнавать: как они выглядят, например? Похоже на протечку абстракций

Comment on lines 6 to 7
protected abstract string mdTag { get; }
protected abstract string htmlTag { get; }

Choose a reason for hiding this comment

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

Поля называются с большой буквы

Copy link
Author

Choose a reason for hiding this comment

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

+

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