Skip to content

Commit

Permalink
feat: implement matrix indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Jul 9, 2023
1 parent 93132b2 commit c0d29a1
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 225 deletions.
1 change: 1 addition & 0 deletions src/parser/LatexParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ expr: <assoc=right> id CARET_SINGLE_CHAR_ID_UNDERSCORE_SUBSCRIPT #exp
| <assoc=right> id CARET L_BRACE expr R_BRACE UNDERSCORE_SUBSCRIPT #exponent
| <assoc=right> expr (CARET_SINGLE_CHAR_ID | CARET_SINGLE_CHAR_NUMBER) #exponent
| <assoc=right> expr CARET L_BRACE expr R_BRACE #exponent
| expr UNDERSCORE L_BRACE expr COMMA expr R_BRACE #index
| CMD_SQRT_INT #singleIntSqrt
| CMD_SQRT L_BRACE expr R_BRACE #sqrt
| BEGIN_MATRIX matrix_row (DOUBLE_BACKSLASH matrix_row)* END_MATRIX #matrix
Expand Down
Loading

0 comments on commit c0d29a1

Please sign in to comment.