/lamath

A math interpreter written in Syphon

MIT LicenseMIT

LaMath

A math interpreter written in Syphon, previously was in PHP

Quick Try

You only need the latest version of Syphon

$ ./bin/lamath
>> 5 + 5
10

Syntax

  • The numbers are reperesentated as Syphon floats
  • A math expression is a step, and the whole line of expressions is a procedure
  • Steps are separated by space

The available unary operators are:

  • [-]

  • -: Negation

The available binary operators are:

  • [+, -, /, *, **]
  • +: Addition
  • -: Subtraction
  • /: Division
  • *: Multiplication
  • **: Exponentation