Git Product home page Git Product logo

dtm-language's Introduction

DTM Language

What is DTM?

Excerpt from the Tutorial sheet

"As a language, Do The Math (DTM) serves as a tool to solve math problems. Given the way expressions are formatted, DTM reinforces the order of operation rules and avoids problems that are open to interpretation in how they should be solved. This is done with the use of parentheses around all possible operations between two numbers. The language is written in the F# programming language and is built using the .NET Framework from Microsoft. Although it was written intended to take simple expressions from the command line, DTM also supports running files with an extension of ".dtm" , and has a functioning repl that can be used in the command line. The language implements the evaluation of math problems in prefix and infix notation. For more information giving a much more detailed description of the language, its syntax, and its semantics, be sure to read A Look into DTM (Do the Math), which is included in the language’s source code."

Getting Started

In order to use DTM:

  • Clone this repository to your local machine using git clone https://github.com/japonte21/dtm-language.git
  • Run the program with these commands
$ cd dtm-language
$ dotnet build
...
$ dotnet run --project lang

or

$ cd dtm-language/lang
$ dotnet build
...
$ dotnet run

This will allow you to have a copy of the project on your local machine available to run when desired.

Prerequisites

Ensure that you have a version of F# and .NET compatible with your local machine. F# is needed to make any desired edits to the source code and .NET is used to build and run the language. To check this, run the command dotnet --version and fsharpi in terminal. If you don't have either of the programs, download the latest version compatible with your machine on the .NET website and the F# website .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.