Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 1.44 KB

TODO.org

File metadata and controls

23 lines (22 loc) · 1.44 KB

Ideas

Make a chainable variable

The current feature only allow one child object/properties like var.prop or array like arr[1] but did not allow object.prop.childprop

Add test for exp() method

the exp() purpose is solely proxying for assignment exp and conditional exp not sure how to test it file:/run/media/gumendol/rex/school/nfu_2/compiler/minic/minic/parser.py::def exp(self, var=None):

Add test for optional_exp()

Still dont know what to test for this file:/run/media/gumendol/rex/school/nfu_2/compiler/minic/minic/parser.py::def optional_exp(self, var=None):

Define LabeledStatement Node

Its still ambigous [[file:/run/media/gumendol/rex/school/nfu_2/compiler/minic/tests/minic/test_parser.py::# @pytest.mark.parametrize(“inp, exp”, \[(“default:\ncas”)]]

make label node?

an ID for goto statement, or just make it plain string file:/run/media/gumendol/rex/school/nfu_2/compiler/minic/tests/minic/test_parser.py::(“goto something;”, nd.JumpStmt(1, ‘goto’, ‘something’)),

test for empty while loop conditon

/run/media/gumendol/rex/school/nfu_2/compiler/minic/tests/minic/test_parser.py

make type_declaration recognize new type

Now its only recognize int and void even void somevariable is a valid statement; file:/run/media/gumendol/rex/school/nfu_2/compiler/minic/tests/minic/test_parser.py::(“int something;”, nd.VarDecl(1, ‘int’, ‘something’)),