# clone this repo
% git clone [email protected]:pocari/parslet-calc-parser.git
% cd parslet-calc-parser
# install bundles
% bundle install --path=vendor/bundle
# show sample
% cat program.txt
def add(aaa, bbb)
x = (1 + 2) * 3
aaa + bbb + x
end
aaa = 1
bbb = 3
ccc = add((aaa + 2), bbb)
puts(aaa)
puts(bbb)
puts(ccc)
# run sampl
% bundle exec ruby main.rb < program.txt
1.0
3.0
15.0
-
Notifications
You must be signed in to change notification settings - Fork 0
pocari/parslet-calc-parser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Parslet sample
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published