Chacix / rust_parser_demo

simple calculator written in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust parser demo

this repo contains code for simple calculator interpreter. The language supports simple integer operations, variables and print statements.

The source code is read from file, parsed into ast, compiled into bytecode and executed.

For ease of reading grammar is presented in Expr.g4 file, but the file itself is not used in project.

Example program can be found in program.txt

About

simple calculator written in rust


Languages

Language:Rust 98.2%Language:ANTLR 1.8%