Syntax & Natural Language Overview
Kalc supports both mathematical symbols and conversational English phrases interchangeably, powered by a top-down Pratt Parser.
For complete details on operator precedence levels, implicit multiplication rules, Unicode normalization, and formatting, see the Full Syntax & Precedence Guide.
Quick Reference
| Operation | Symbolic | Natural Language | Example |
|---|---|---|---|
| Addition | + | plus | 10 + 20 or 10 plus 20 |
| Subtraction | - | minus, subtract | 50 - 15 or 50 minus 15 |
| Multiplication | * | times, multiplied by | 12 * 8 or 12 times 8 |
| Division | / | divided by, over | 100 / 4 or 100 over 4 |
| Exponentiation | ^ | pow, to the power of | 2^8 |
| Unit Conversion | -> | in, to, as, into | 25 cm in inches |
Implicit Multiplication
Kalc understands common mathematical shorthand:
2(3 + 4)evaluates to14(4)(5)evaluates to205xor10USDbinds directly to scalar factors
👉 Continue to Full Syntax Reference & Precedence Table