Skip to content

Commit

Permalink
feat: allow arbitrary expressions for scatter plot x and y values
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Nov 7, 2023
1 parent 98b6b51 commit 9ed7dc7
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 182 deletions.
2 changes: 1 addition & 1 deletion src/parser/LatexParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ statement: (assign | assign_list | assign_plus_query | query | equality |
u_block | number | id | id_list | guess | guess_list | expr |
condition | piecewise_assign | insert_matrix | scatter_plot_query)? EOF;

scatter_plot_query: (( L_PAREN id COMMA id R_PAREN ) | ( id COMMA id )) AS_LINES? EQ (( L_PAREN u_block COMMA u_block R_PAREN ) | ( u_block COMMA u_block ))?;
scatter_plot_query: (( L_PAREN expr COMMA expr R_PAREN ) | ( expr COMMA expr )) AS_LINES? EQ (( L_PAREN u_block COMMA u_block R_PAREN ) | ( u_block COMMA u_block ))?;

insert_matrix: .*? (u_insert_matrix .*?)+;

Expand Down
Loading

0 comments on commit 9ed7dc7

Please sign in to comment.