Skip to content

Small integer math interpreter written in zig

License

Notifications You must be signed in to change notification settings

joeypas/Zigterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Small integer math interpreter written in zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages