pauliejes / BC

Compiling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To run in interactive mode:
	$> ./bc
To run with I/O rediraction:
	$> ./bc < test

Examples of commands

assignment:
	a = 7
	=7

	b = 5
	=5

addition:
	7 + 2
	=9

	a + b
	=12

multiplication
	3 * 5
	=15

	a * b
	=35

you can string things together also
	a = 5 + 10 * 2
	=25

and use parenthesis
	a = (5 + 10) * 2
	=30

About

Compiling


Languages

Language:C++ 76.4%Language:Lex 12.9%Language:Makefile 7.5%Language:C 3.2%