Tuesday, April 3, 2012

Simple Compiler in C# [source code]


This is a simple compiler programmed in C# that accept arithmetic operations with integers, "/", "^" and parenthesis symbols.

The project passes through three phases:
  1. Scanning phase: this stage check the code from syntax errors and unacceptable symbols
  2. Parsing phase: this stage do the semantic rules over the code and detect logical errors, rules are steted in parsing table.
  3. Evaluating phase: after two previous phases are checked and completed successfully the evaluating process complete its work and return the result.

Sample snapshots



Download the source code

No comments:

Post a Comment