Skip to content

pocke/dentaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dentaku

yacc learning.

Installation

go get -d github.com/pocke/dentaku
cd $GOPATH/src/github.com/pocke/dentaku/parser
make
cd ..
go install

Usage

echo '1+1' | dentaku  # => 2

Syntax

Addition

1+3   # => 4
2+0   # => 2

Subtraction

10-3  # => 7
5-10  # => -5

Multiplication

10*5  # => 50

Division

10/2  # => 5
14/6  # => 7/3

Parenthesis

3*5+2*6     # => 27
3*(5+2)*6   # => 126

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published