Skip to content

This is a Interpreter written in TypeScript, Currently can compile only simple maths operations. Will enhance gradually into something powerful.

Notifications You must be signed in to change notification settings

Shaykoo/TS-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Interpreter

A simple interpreter built using TypeScript, designed to help understand the basics of language parsing and interpretation. This project serves as a learning tool to explore TypeScript's features and functionalities.

Features

  • Tokenization of input strings
  • Parsing of tokens to generate an abstract syntax tree (AST)
  • Basic arithmetic interpretation

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/ts-interpreter.git
    
    
  2. Navigate to the project directory:

    cd ts-interpreter

  3. Install the necessary dependencies:

    npm install

  4. Usage

    To run the interpreter, you'll need to compile the TypeScript files first. Follow the steps below to compile and execute the project.

    Compiling the Project:

    To compile the TypeScript files into JavaScript, run the following command:

     npx tsc
    
  5. Running the Interpreter:

    After compiling, you can run the interpreter using Node.js:

     node ./dist/index.js
    
  6. Contributing:

    Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

    Fork the repository.

     Create a new branch (git checkout -b feature/YourFeature).
     Make your changes and commit them (git commit -m 'Add some feature').
     Push to the branch (git push origin feature/YourFeature).
     Open a pull request.
    
  7. Liscense

    This project is under MIT liscense. Please go through it.

About

This is a Interpreter written in TypeScript, Currently can compile only simple maths operations. Will enhance gradually into something powerful.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published