Skip to content

xoesae/mathl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mathl

Math interpreter for learning programming languages.

Grammar

<exp> ::= <term> | <exp> "+" <term> | <exp> "-" <term>
<term> ::= <factor> | <term> "*" <factor> | <term> "/" <factor>
<factor> ::= <number> | "(" <exp> ")"
<number> ::= <digit> | <digit> <number>
<digit> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"

Installation

To install dependencies:

bun install

To run:

bun mathl

About

A simple math interpreter

Resources

License

Stars

Watchers

Forks