Skip to content

cagatayavsar/Compiler-Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

It is aimed to analyze the mathematical equations mentioned below. For this, the java language and javacc (the parser generator developed for java language) were used.

As examples of mathematical iterative equations, equations expressing the numbers of fibonacci can be expressed as follows.

input.txt file contains the equations and looks like this:

F(0) = 0
F(1) = 1
F(x) = F(x-1) + F(x-2)

To compile the project;

javacc lang.jj
javac *.java

To execute;

java EvalVisitor < prog.txt

About

Grammar Based Evaluation of Mathematical Equations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages