You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate to PEG parser. Introduce boolean operators and constants. (#2182)
* Migrate to PEG parser. Introduce boolean operators and constants.
* Update UnitTest. Added conditional sample.
* Improve null handling and added extra boolean/null unit tests
* Additional boolean tests
* Allow nulls if operator is ? : && || == !=
* __bool and MathToken record refactor
* First attempt to block null reference return
* Second attempt to block null reference return
* Addessed CS8603 possible null reference return issues
* Use correct C# property name pattern. Log invalid math expressions instead of raising exceptions.
* Null Forgiving Operator removed. Adjust null checks in MultiMathExpressionConverter and corresponding unit tests.
* Add more logical and/or unit tests. Add XAML friendly comparator operators.
* Improve unit test coverage on alternate operators.
* Improve null handling for logical operators && || and cover these cases in unit tests.
* Miscellaneous fixes for Copilot review
* Update to .NET 9
* Use Primary Constructor
* Remove redundant CodeAnalysis
* Update Regex naming
* Use Index Operator
* Update namings
* Refactor
* Revert naming, Use `in` + `IReadOnlyList<T>` to protect `MathExpression` inputs
---------
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Copy file name to clipboardExpand all lines: samples/CommunityToolkit.Maui.Sample/Pages/Converters/MultiMathExpressionConverterPage.xaml
+74-51Lines changed: 74 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -15,63 +15,86 @@
15
15
</ResourceDictionary>
16
16
</pages:BasePage.Resources>
17
17
18
-
<GridPadding="20"
19
-
RowSpacing="20"
20
-
ColumnSpacing="12"
21
-
ColumnDefinitions="*,*,*,*,*,*,*"
22
-
RowDefinitions="100, *">
23
-
<Label Grid.ColumnSpan="7"
24
-
Grid.Row="0"
25
-
Text="This sample demonstrates the use of the MultiMathExpressionConverter. It utilizes the converter to perform various math operations of multiple variables."/>
18
+
<VerticalStackLayoutPadding="20"Spacing="40">
26
19
27
-
<Entry Grid.Column="0"
28
-
Grid.Row="1"
29
-
VerticalTextAlignment="Center"
30
-
VerticalOptions="Center"
31
-
Text="{Binding X0}"/>
20
+
<GridRowSpacing="20"
21
+
ColumnSpacing="12"
22
+
ColumnDefinitions="*,*,*,*,*,*,*"
23
+
RowDefinitions="100, *">
24
+
<Label Grid.ColumnSpan="7"
25
+
Grid.Row="0"
26
+
Text="This sample demonstrates the use of the MultiMathExpressionConverter. It utilizes the converter to perform various math operations of multiple variables."/>
0 commit comments