Skip to content

Commit 08293df

Browse files
committed
Allow rectangular special matrices
1 parent dbcdaaf commit 08293df

File tree

3 files changed

+153
-106
lines changed

3 files changed

+153
-106
lines changed

MyParser.g4

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ expression
8686
;
8787

8888
specialMatrixFunction
89-
: (ZEROS | ONES | EYE) OPEN_BRACKET_ROUND int CLOSE_BRACKET_ROUND
89+
: EYE OPEN_BRACKET_ROUND int CLOSE_BRACKET_ROUND
90+
| (ZEROS | ONES) OPEN_BRACKET_ROUND int (COMMA int)* CLOSE_BRACKET_ROUND
9091
;
9192

9293
break

generated/MyParser.interp

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)