forked from amber-lang/amber
-
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.
[BUG] Invalid operation Precedence (amber-lang#367)
* feat(expr): overhaul of expression syntax module * feat: adapt binary operator modules to the new structure * merge(precedence): resolve path to command * fix(refactor): Added macros to make writing operator precedence much easier * fix(expr): Attach operators to work with precedence macro * feat(precedence): remove precedence file * fix(format): Cargo clippy and fmt * revert(format): Cargo clippy and fmt This reverts commit 88fc6b0. * fix(lint): resolve clippy errors * Update src/modules/expression/macros.rs Co-authored-by: Hubert Jabłoński <[email protected]> * feat(tests): add validity tests * fix(macro): improved handle binop macro * fix(expr): remove pub from fields * feat(macro): change prev to next * feat(macro): add edge case for one group * Update src/modules/expression/binop/sub.rs Co-authored-by: Hubert Jabłoński <[email protected]> * Update src/modules/expression/binop/eq.rs Co-authored-by: Hubert Jabłoński <[email protected]> * Update src/modules/expression/binop/neq.rs Co-authored-by: Hubert Jabłoński <[email protected]> * Update src/modules/expression/binop/or.rs * Update src/modules/expression/binop/and.rs * feat(error-macro): simplify code in a macro to keep DRY principle * feat(test): Add test for multiple cast * fix(and): remove comment * fix(range): Fix range and remove import from code eval (the stdlib looks diffrent now) * Update src/modules/expression/ternop/ternary.rs Co-authored-by: Hubert Jabłoński <[email protected]> * Update src/modules/expression/ternop/ternary.rs Co-authored-by: Hubert Jabłoński <[email protected]> --------- Co-authored-by: Hubert Jabłoński <[email protected]>
- Loading branch information
Showing
41 changed files
with
901 additions
and
339 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
pub mod ifcond; | ||
pub mod ifchain; | ||
pub mod ternary; | ||
pub mod failed; | ||
pub mod failed; |
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
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
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
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
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
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
Oops, something went wrong.