Skip to content

Infix Calculator

Latest
Compare
Choose a tag to compare
@tomasanchez tomasanchez released this 11 Dec 18:21
· 10 commits to master since this release

09-CalcInfAutoV2 is a simple calculator made as an assignment being its objective learn about ANSI-C compiling, syntax and semantics found in a scanner and a parser, made using Flex for scanner generating and Bison for parser

At this current version calculator allows scanning and parsing and solving expression such as:

Numbers: 1
Variables: A, with starting value 0.
Expressions: 1+2
Assignments: let A = 1
Calculations: let B = ( 2 + 3 ) * 9 * A + 12 * 4 * ( 2 + A ) 
Expressions with brackets: (1+2)*5