When naming commits, specify the issue id to which it belongs: Added some files (#1)
Before creating a PR, make sure that all the pytest tests for your task pass
When creating a PR, assign @Oidaho as a reviewer
Написать посимвольный парсер кода
The parser class must accept the path to the target file, then use a special method
to parse the characters and return them one at a time. You can implement such a thing through yield.
Recommendations for the task completion process
Added some files (#1)
pytest
tests for your task passНаписать посимвольный парсер кода
The parser class must accept the path to the target file, then use a special method to parse the characters and return them one at a time. You can implement such a thing through
yield
.Target file:
pyxpp/parser/parser.py
Target class:CodeParser
List of implementation tasks
Path
object from pathlib into an internal attribute.consistently()
, which will return the contents of the file character by character.consistently()
method should return not a character, but the string `"EOF"'.Testing information
Tests startup command:
pytest tests/test_parser.py::TestCodeParser
Tests count:3