Skip to content

Commit

Permalink
rebuilding site Thursday 28 November 2024 11:55:58 PM IST
Browse files Browse the repository at this point in the history
  • Loading branch information
animesh-chouhan committed Nov 28, 2024
1 parent 43495cf commit e344c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DeepThought/content/posts/calculator-percentage.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The GNOME calculator [documentation](https://help.gnome.org/users/gnome-calculat
>
> **`25% × 80`**
Gnome Calculator (or any advanced calculator) is based on a parser and evaluator system. When you input an expression like 3 + 5 \* 2 into a calculator:
GNOME Calculator (or any advanced calculator) is based on a parser and evaluator system. When you input an expression like 3 + 5 \* 2 into a calculator:

1. Lexer breaks it into tokens: 3, +, 5, \*, 2.
2. Parser processes those tokens into a structured format (like an AST) while respecting precedence and associativity.
Expand Down
2 changes: 1 addition & 1 deletion posts/calculator-percentage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ <h3 id="gnome-calculator">GNOME Calculator</h3>
<p>In all other cases the percentage symbol resolves to a fraction out of 100. The following equation calculates one quarter of 80 apples ((25÷100)×80).</p>
<p><strong><code>25% × 80</code></strong></p>
</blockquote>
<p>Gnome Calculator (or any advanced calculator) is based on a parser and evaluator system. When you input an expression like 3 + 5 * 2 into a calculator:</p>
<p>GNOME Calculator (or any advanced calculator) is based on a parser and evaluator system. When you input an expression like 3 + 5 * 2 into a calculator:</p>
<ol>
<li>Lexer breaks it into tokens: 3, +, 5, *, 2.</li>
<li>Parser processes those tokens into a structured format (like an AST) while respecting precedence and associativity.</li>
Expand Down

0 comments on commit e344c9d

Please sign in to comment.