Skip to content

A simple calculator with a hand written parser and great error messages

Notifications You must be signed in to change notification settings

davidbalbert/llcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llcalc

A calculator written in c using a recursive descent parser. llcalc has great error messages.

##Using

$ make
$ ./calc
>> foo = 2 * 3
=> 6
>> bar = foo ^ 2
=> 36
>> baz = foo + bar
=> 42
>> 5 + (2^%)
Expected a number, but got a '%'
	5 + (2^%)
	~~~~~~~^

You see? Great error messages!

##License

llcalc is licensed under the terms of the GPLv2.

llcalc contains khash.h which is licensed under the terms of the MIT license. More info can be found here: http://attractivechaos.awardspace.com/khash.h.html

llcalc contains linenoise, which is licensed under the terms of the BSD license. More info can be found in linenoise.c.

About

A simple calculator with a hand written parser and great error messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages