Closed BrunoSalami closed 2 years ago
@BrunoSalami this was actually pretty easy to fix.
hi florian,
confirmed! it's working correctly now:
$ ./mh_debug_parser test.m --tree
In test.m, line 1
| [-.1 -[1]] % [-.1 -1]
| ^ style: end statement with a semicolon
----------------------------------------------------------------------
-- Parse tree for test.m
Root: Script_File
Statements: Sequence_Of_Statements
Statements: Naked_Expression_Statement
Expression: Matrix_Expression
Content: Row_List
Items: Row
Items: Unary_Operation -
Expression: Number_Literal <.1>
Items: Unary_Operation -
Expression: Matrix_Expression
Content: Row_List
Items: Row
Items: Number_Literal <1>
I found another one of those, see https://github.com/florianschanda/miss_hit/issues/253
MISS_HIT Component affected Please choose one from:
Your MATLAB/Octave environment
Your operating system and Python version
Describe the bug
[-.1 -[1]]
should be parsed as an array with two elements. However, miss_hit interprets this as a scalar (sums up -.1 and -1 -> -1.1)