Skip to content
/ repl.cr Public

A project that demonstrates how to create a tree-walker interpreter

License

Notifications You must be signed in to change notification settings

TheEEs/repl.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exp_parser

This is a project that demonstrates how to create a tree-walker interpreter. It now can only evaluate simple expressions including add, subtract, division, exponent and unary.

Installation

  1. Clones this repository:
$ git clone https://github.com/TheEEs/expression_repl.git
  1. Navigates into the cloned directory then run:
crystal run -Drepl ./src/repl.cr

Usage

  1. Evalutes single expression.
1 * (6   10 / 2)
  1. Evalutes multiple expression.
1 * (6   10 / 2); 8 ** 3
  1. Types exit to terminate the program

About

A project that demonstrates how to create a tree-walker interpreter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published