Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Fixed priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonExposer committed Jul 16, 2022
1 parent 0a89643 commit 1593611
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ public static void Main(string[] args) {
// Low number for priority means a higher priority
priorities.Insert("(", 0);
priorities.Insert("!", 1);
priorities.Insert(">", 2);
priorities.Insert("<", 2);
priorities.Insert("<=", 2);
priorities.Insert(">=", 2);
priorities.Insert("==", 3);
priorities.Insert("!=", 3);
priorities.Insert("&&", 4);
priorities.Insert("and", 4);
priorities.Insert("||", 5);
priorities.Insert("or", 5);
priorities.Insert("^", 6);
priorities.Insert("*", 7);
priorities.Insert("/", 7);
priorities.Insert("%", 7);
priorities.Insert("+", 8);
priorities.Insert("-", 8);
priorities.Insert("=", 9);
priorities.Insert("^", 2);
priorities.Insert("*", 3);
priorities.Insert("/", 3);
priorities.Insert("%", 3);
priorities.Insert("+", 4);
priorities.Insert("-", 4);
priorities.Insert("=", 5);
priorities.Insert(">", 6);
priorities.Insert("<", 6);
priorities.Insert("<=", 6);
priorities.Insert(">=", 6);
priorities.Insert("==", 7);
priorities.Insert("!=", 7);
priorities.Insert("&&", 8);
priorities.Insert("and", 8);
priorities.Insert("||", 9);
priorities.Insert("or", 9);
priorities.Insert("decl", 10);

// Standard defined variables
Expand Down

0 comments on commit 1593611

Please sign in to comment.