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

Автотесты для 8 и 9 задания. #136

Merged
merged 3 commits into from
Apr 20, 2024
Merged

Conversation

KubEF
Copy link
Collaborator

@KubEF KubEF commented Apr 19, 2024

Посмотрите на формулировку, пожалуйста.

@KubEF KubEF requested review from gsvgit and WoWaster April 19, 2024 15:09
@KubEF KubEF changed the title Автотесты для 8 задания. Автотесты для 8 и 9 задания. Apr 19, 2024
Copy link
Member

@gsvgit gsvgit left a comment

Choose a reason for hiding this comment

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

Чот миллион копий грамматик --- это ад, конечно.


EBNF_GRAMMARS = [
"""S -> ( Sab c* ) | ( a* Sbc )
Sab -> a ( Sab | $ ) b
Copy link
Member

Choose a reason for hiding this comment

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

А тут с пробелами всё нормально?

cfg.CFG.from_text(
"S -> S1 | S2\nS1 -> Sab | S1 c\nSab -> $ | a Sab b\nS2 -> Sbc | a S2\nSbc -> b Sbc c"
),
cfg.CFG.from_text("S -> a | b | S c S | S d S | e S f | g S"),
Copy link
Member

Choose a reason for hiding this comment

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

Просто я уже сам запутался. Почему где-то надо терминалы и нетерминалы пробелами разделять, а где-то не надо.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Терминалы и нетерминалы всегда надо разделять. Это я так пишу нетерминал $S_{ab}$ и т.п.

Copy link
Member

@gsvgit gsvgit left a comment

Choose a reason for hiding this comment

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

Да, формулировки норм. С пробелами понял.

tasks/task8.md Outdated Show resolved Hide resolved
tasks/task9.md Outdated Show resolved Hide resolved
@KubEF KubEF marked this pull request as ready for review April 20, 2024 12:12
@gsvgit gsvgit merged commit f7b909a into main Apr 20, 2024
2 checks passed
@WoWaster WoWaster deleted the task8-autotest branch May 8, 2024 16:47
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.

3 participants