-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Support Custom Operators * chore: Cleanup Old INFIX Stuff * chore: Update Tests * feat: Support Parsing Precedence Level * feat: Add Support for PostFix * chore: Refactor Parser Step 1 * fix: Stop TypeCasts And Generics Being Confused For Prefix PostFix Statements * fix: Make INFIX operators work again * feat: Support custom assignment operators * chore: Update Tests * feat: Support PostFix Statements * feat: Add More Custom Operators * feat: Add Operator Tests, Fix Operator Precedence Between INFIX And POSTFIX * chore: Performance Increase * feat: Support Operator Imports
- Loading branch information
1 parent
b039396
commit dd3e142
Showing
28 changed files
with
12,648 additions
and
9,858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Infix Operators | ||
let aINFIX: i32 = 1n + 1n; | ||
let bINFIX: i32 = 1n - 1n; | ||
let cINFIX: i32 = 1n * 1n; | ||
let dINFIX: i32 = 1n / 1n; | ||
let eINFIX: i32 = 1n % 1n; | ||
let fINFIX: i32 = 1n ^ 1n; | ||
let fINFIX: i32 = 1n == 1n; | ||
// Prefix Operators | ||
let aPREFIX: i32 = +1n; | ||
let bPREFIX: i32 = -1n; | ||
let cPREFIX: i32 = *1n; | ||
let dPREFIX: i32 = /1n; | ||
let ePREFIX: i32 = %1n; | ||
let fPREFIX: i32 = ^1n; | ||
// Postfix Operators | ||
let aPOSTFIX: i32 = 1n+; | ||
let bPOSTFIX: i32 = 1n-; | ||
let cPOSTFIX: i32 = 1n*; | ||
let dPOSTFIX: i32 = 1n/; | ||
let ePOSTFIX: i32 = 1n%; | ||
let fPOSTFIX: i32 = 1n^; | ||
|
||
// Precedence | ||
let aPrecedence: i32 = (1n!) + (1n!); | ||
let bPrecedence: i32 = !1n + !1n; | ||
let cPrecedence: i32 = !1n!; | ||
let dPrecedence: i32 = !1n!!; | ||
let ePrecedence: i32 = !!1n!; | ||
let fPrecedence: i32 = +!1n; | ||
let gPrecedence: i32 = 1n!+; | ||
let hPrecedence: i32 = 1n + 1n ** 1n + 1n * 2n / 3n % 4n - 5n ^ 6n == 7n && 8n < 9n > 10n ? 12n; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.