Skip to content

mille-printemps/dentaku

Repository files navigation

Dentaku

An arithmetic calculator application

Build


  %> npm install
  %> npm run build

Run


  %> cd app
  %> open index.html
  

Model


  <expression> ::= <expression> "+" <term> | <expression> "-" <term> | <term>
  <term> ::= <term> "*" <subterm> | <term> "/" <subterm> | <term> "%" <subterm> | <subterm>
  <subterm> ::= <subterm> <binary_operator> <factor> | <factor>
  <factor> ::= <unary_operator> <factor> | "(" <expression> ")" | <number>

  <binary_operator> ::= "^" | "pow" | "toPower"
  <unary_operator> ::= "ln" | "log" | "sqrt" | "squareRoot" | "neg" | "negated"
  <number> ::= decimal numbers

Operator precedence

Operators are listed from left to right in ascending precedence.


"+","-"  <<  "*", "/", "%"  <<  <binary_operator>  <<  <unary_operator>  <<  "(", ")"


About

An arithmetic calculator application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published