Skip to content

atlastze/interpreter-in-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of an Interpreter

Introduction

A C/C++ implementation of interpreter for the bellowing syntax:

Parser rules:

expression ::= number ( ( '+' | '-' ) number )*

Scanner rules:

number ::= ( integer ( '.' integer? )? | '.' integer ) ( ( 'e' | 'E' ) ( '+' | '-' )? integer )?
integer ::= ( '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' )+

References

  1. Charles N. Fischer et al, Crafting a Compiler, 2009
  2. Ronald Mak, Writing Compilers and Interpreters: A Software Engineering Approach, 3rd Edition
  3. Terence Parr, Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages, 2010
  4. Keith D. Cooper et al, Engineering a Compiler, 2nd Edition
  5. Luna Programming Language

About

A Simple Interpreter Implementation in C/C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published