Skip to content

damphat/Calculator

Repository files navigation

Calculator, handy recursive descent parser in C#

Test Status

BNF Grammar used in the project:

exp -> exp "+" term
     | exp "-" term
     | term

term -> term "*" factor
     | term "/" factor
     | factor

factor -> "+" factor
     | "-" factor
     | "(" exp ")"
     | number

number -> [0-9]+ ([.][0-9]+)? ([eE](+|-)?[0-9]+)

alt

About

Parse math expressions with recursive parser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages