Skip to content

Commit

Permalink
Merge pull request #279 from mgreminger/pi-units
Browse files Browse the repository at this point in the history
feat: implement units applied to pi
  • Loading branch information
mgreminger authored Sep 29, 2024
2 parents cce9e40 + c2d8589 commit 916cac0
Show file tree
Hide file tree
Showing 4 changed files with 767 additions and 685 deletions.
2 changes: 1 addition & 1 deletion src/parser/LatexParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ id: ID ;

number: SUB? NUMBER ;

number_with_units: number u_block;
number_with_units: (number | PI | id) u_block;

assign: (id | PI) EQ expr ; // recognize PI here so that error can be generated for assigning to pi

Expand Down
Loading

0 comments on commit 916cac0

Please sign in to comment.