From 9ab322751a732d8cbc1ddf4f2ecf5022d7242baa Mon Sep 17 00:00:00 2001 From: Marijn Besseling Date: Sun, 7 Sep 2025 20:56:09 +0200 Subject: WIP migration --- Blog/Components/Pages/Calc.razor | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Blog/Components/Pages/Calc.razor (limited to 'Blog/Components/Pages/Calc.razor') diff --git a/Blog/Components/Pages/Calc.razor b/Blog/Components/Pages/Calc.razor new file mode 100644 index 0000000..942d9a9 --- /dev/null +++ b/Blog/Components/Pages/Calc.razor @@ -0,0 +1,56 @@ +@page "/Calc" +Calculator + + +
+

A rpn calculator

+
+ + +
+
+
+
+ +
+ Available stack operations +
+ dup +

Duplicates the top value on the stack

+
+ [1, 2, 3] + dup +
+
+ [1, 1, 2, 3] + +
+
+ +
+ drop +

Drops the top value on the stack

+
+ [1, 2, 3] + drop +
+
+ [2, 3] + +
+
+ +
+ swap +

Swaps the top two values on the stack

+
+ [1, 2, 3] + swap +
+
+ [2, 1, 3] + +
+
+
+
\ No newline at end of file -- cgit v1.2.3