Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 886 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 886 Bytes

Zigterpreter

This repository contains a simple integer math interpreter implemented in the Zig programming language. This interpreter can evaluate basic mathematical expressions involving integers, such as addition, subtraction, multiplication, and division.

Features

  • Supports addition, subtraction, multiplication, and division operations.
  • Evaluates expressions with integer operands.
  • Handles parentheses to enforce operator precedence.

Getting Started

Prerequisites

To compile and run this interpreter, you need to have Zig installed on your system. You can find instructions for installing Zig on the official Zig website.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/joeypas/zigterpreter.git
    
    zig build
    ./zig-out/bin/generator
    ./zig-out/bin/interpreter testf