Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
mtardy 5962b6ce40 Fix a parenthesis mistake in memmove len arg when inserting or deleting in a Map há 4 anos
drafts Add the object structure há 4 anos
.gitignore Add Map and String data structure há 4 anos
Makefile Fix for object há 4 anos
README.md Update README há 4 anos
calc.leg Remove table object, replace it with a 'globals' map há 4 anos
object.c Fix a parenthesis mistake in memmove len arg when inserting or deleting in a Map há 4 anos
test.sh Add the object structure há 4 anos
test.txt Add Map and String data structure há 4 anos
test2.txt Remove table object, replace it with a 'globals' map há 4 anos

README.md

Basic calculator

Requirements

Please install peg/leg manually or with Homebrew:

$ brew install peg

Please install the Boehm-Demers-Weiser conservative garbage collector manually or with Homebrew:

$ brew install bdw-gc

Build

$ make

Usage

$ echo "a=2+3 a*2" | ./calc

Tests

Simple tests:

$ ./test.sh

Custom test:

$ ./calc < test.txt