Oidaho / Pyxpp

📺 Translator from a variety of Python language to a variety of C++ language
GNU General Public License v3.0
1 stars 1 forks source link

Code parser #3

Open Oidaho opened 19 hours ago

Oidaho commented 19 hours ago

Recommendations for the task completion process

Написать посимвольный парсер кода

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

Testing information

Tests startup command: pytest tests/test_parser.py::TestCodeParser Tests count: 3