coolinary a recipe language prof. al aho programming languages & translators columbia university...
TRANSCRIPT
![Page 1: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/1.jpg)
coolinarya recipe language
prof. al ahoprogramming languages & translators
columbia university spring 2011
![Page 2: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/2.jpg)
alpha bahsystem integrator
david gainerlanguage guru
andrew dunnproject manager
johnny webersystem architect
project team
![Page 3: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/3.jpg)
what is coolinary?
•coolinary is a language parses a reduced form recipe and outputs the nutritional value
![Page 4: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/4.jpg)
use cases
•development of school lunch programs
•facebook game such as café world
•calorie counting applications for mobile devices
![Page 5: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/5.jpg)
coolinary structure
![Page 6: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/6.jpg)
basic food types•water
•fruit
•grain
•veggies
•liquid
•meat
•dairy
![Page 7: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/7.jpg)
water
•fundamental cooking ingredient
![Page 8: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/8.jpg)
veggies•asparagus
•broccolli
•carrots
•cauliflower
•celery
•cucumber
•mushroom
•onion
•potato
•tomato
![Page 9: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/9.jpg)
grains•barley
•corn
•millet
•oats
•rice
•rye
•spelt
•wheat
![Page 10: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/10.jpg)
fruit•apple
•avocado
•banana
•cantaloupe
•grapefruit
•grapes
•honeydew
•kiwi
•lemon
•orange
•pear
•pineapple
•strawberry
•watermelon
![Page 11: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/11.jpg)
cooking operations•cook
•bake
•boil
•grill
•fry
![Page 12: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/12.jpg)
mixtures•combine elements
•synthesize new properties of the mixture
![Page 13: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/13.jpg)
cooking operations•cook
•bake
•boil
•grill
•fry
![Page 14: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/14.jpg)
cooking effects•scaled factors based on the
duration of the effect
•increase or decrease in nutrition and chemical elements
![Page 15: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/15.jpg)
hello world •/* boil water */
•{
•water.boil();
•}
![Page 16: Coolinary a recipe language prof. al aho programming languages & translators columbia university spring 2011](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cf15503460f949c06b1/html5/thumbnails/16.jpg)
sample input• /* recipe for a steak dinner*/
• {
•potato pot;•pot.quantity = 5;•broccolli broc;•filet steak();•steak.quantity = 1;•broc.bake(10);•pot.fry(8);•steak.grill(8);•mixture steakSpecial = combine(pot, broc, steak);•display(special);
• }