Skip to content

C++ Q-parser is a txt file compiler that build basic arithmetic operations

Notifications You must be signed in to change notification settings

torukMnk/q-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q-parser

Travis Status

Universidad de Colima ISC Project 2013

Q-parser compile variables, numbers and basic arithmetic operations from txt file and return a result. Tested on Linux Ubuntu Release 12.04 (precise) 32-bit Kernel Linux 3.13.0-35-generic

Build Files

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

$sudo apt-get install build-essential make
$make

Execute Q-parser sample

$./qparser data.txt

Out

File content data.txt

lado1=5;
lado2=86;
base=105;
color2=200;
calculo=lado1+lado2-base+300-100/color2-4;

:: Q-Compiler ::

lado1=5;
lado2=86;
base=105;
color2=200;
calculo=-3.07;

Generated file

q-data.txt

TODO

  • Expression Tree

About

C++ Q-parser is a txt file compiler that build basic arithmetic operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published