ProgramingIsTheFuture / Math-Interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Math language

Documentation

Variables

{Name} = {expr}

$$x = 10$$

functions

This is how the structure is supposed to look like:

{Name} ([params]) = {expr}

$$f() = 4 + 2 f(x) = x + 2 f(x, y) = x + y f(x) = 1 if x = 0 else f(x-1) * x$$

Comments

$$# This should be a comment$$

If statements

{value} if {expr}

{value} if {expr} else {value}

$$# simple if statement 10 if x > 5 # this expression returns 1 if x = 0 and if x != 0 it returns 2 1 if x = 0 else 2$$

About


Languages

Language:OCaml 100.0%