Skip to content

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

OperationSymbolicNatural LanguageExample
Addition+plus10 + 20 or 10 plus 20
Subtraction-minus, subtract50 - 15 or 50 minus 15
Multiplication*times, multiplied by12 * 8 or 12 times 8
Division/divided by, over100 / 4 or 100 over 4
Exponentiation^pow, to the power of2^8
Unit Conversion->in, to, as, into25 cm in inches

Implicit Multiplication

Kalc understands common mathematical shorthand:

  • 2(3 + 4) evaluates to 14
  • (4)(5) evaluates to 20
  • 5x or 10USD binds directly to scalar factors

👉 Continue to Full Syntax Reference & Precedence Table

Native macOS Computational Notepad • Pure Swift with Strict Concurrency