[TM-3] Add commands to the executable
Description
Problem: for now, we have parser, which can be launched only from REPL
and morley
executable, that does nothing useful
Solution: use ArgParser library to parse command line args. Implement morley
executable so it is possible to run parse
with optional flag --expand-macros
. Also add stubs for typecheck
and run
commands with corresponding flags. All commands has -h
help flag, e.g. morley run -h
Related issue(s)
https://issues.serokell.io/issue/TM-3
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
-
I checked whether I should update the docs and did so if necessary: - README
- Haddock
-
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Roman Melnikov