stefan-brus / dmath

Mathematical expression evaluator written in D
2 stars 0 forks source link

Parse and evaluate files #8

Closed stefan-brus closed 10 years ago

stefan-brus commented 10 years ago

This also requires adding support for command-line arguments.

The user should be able to call dmath like so:

dmath -f file.dmath

Note that the .dmath extension should not be a requirement.

The program should then parse and evaluate each line in the file as its own expression.

stefan-brus commented 10 years ago

A function should also be added that returns an array of expressions, one for each line in the file.