AST
Você não pode selecionar mais de 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 24949bad35 Add a scope parameter in intern function 4 anos atrás
drafts Add the object structure 4 anos atrás
.gitignore Add Map and String data structure 4 anos atrás
Makefile Fix for object 4 anos atrás
README.md Update README 4 anos atrás
calc.leg Add a scope parameter in intern function 4 anos atrás
object.c Add a scope parameter in intern function 4 anos atrás
test.sh Add the object structure 4 anos atrás
test.txt Add Map and String data structure 4 anos atrás
test2.txt Add a scope parameter in intern function 4 anos atrás

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