BIG MAMAS KITCHEN

CMSI 488: LANGUAGE TRANSLATION AND IMPLEMENTATION

Welcome to the Kitchen!! Big Mama is strong, bold, loves cute things (such as her cat, Katchup), and cultivates the most flavorful dishes for her consumers. After a few minutes in her kitchen your taste buds are sure to be left tingling. She will throw in a wide variety of flavors from spicy to sweet, from tangy to salty, and will always finish a job with a sassy wink. Better get your plates ready, are you ready for a taste?

This language is for people who love to cook as it uses cooking/baking phrases. BigMamasKitchen serves to spice up statically typed/scoped languages.


Examples

Hello World


mamaSays "Hello world!" ;)

Greatest Common Denominator

 
recipe bitter gcd (bitter a, bitter b) (^-^)~
   addAPinchOf a < 0 (^-^)~
       a = -1 * a ;)
   ~(^-^)
   
   addAPinchOf b < 0 (^-^)~
       b = -1 * b ;)
   ~(^-^)

   addAPinchOf b > a (^-^)~
       ingredient bitter temp = a ;)
       a = b ;)
       b = temp ;)
   ~(^-^)

   stir until cooked (^-^)~
       addAPinchOf b == 0 (^-^)~
           serve a ;)
       ~(^-^)

      a = a % b ;)

       addAPinchOf a == 0 (^-^)~
           serve b ;)
       ~(^-^)

       b = b % a ;)
   ~(^-^)
   
   serve 0 ;)
~(^-^)

Sum of Two Numbers


recipe bitter Add (bitter a, bitter b) (^-^)~ 
    serve a + b ;) 
~(^-^)

Access Value from Dictionary


recipe salty getCertainValue (salty[#] basicDict, salty key) (^-^)~ 
    serve basicDict[#]key[#] ;) 
~(^-^)

Does 2D Array Contain a zero


recipe spicy containsZero (bitter(@)(@) doubleArray, bitter rows, bitter columns) (^-^)~ 
    ingredient spicy hasZero =  raw ;) 
    
    bake ingredient bitter i = 0 until i < rows i++ (^-^)~
        addAPinchOf hasZero == cooked (^-^)~
                stop ;)
        ~(^-^)
        bake ingredient bitter j = 0 until j < columns j++ (^-^)~
            addAPinchOf doubleArray(@)i(@)(@)j(@) == 0 (^-^)~
                hasZero = cooked ;)
                stop ;)
            ~(^-^) 
       ~(^-^) 
   ~(^-^)

   serve hasZero ;)
    
~(^-^)

Team

Moriah Scott

Her Favorite food is Shrimp and pasta

Sophia Mackin

Her favorite foods are Pad Thai and Green Curry

Miliano Mikol

His favorite food is Poke

Rachel Nguyen

Her favorite foods are Malatang and KBBQ

Bridget OConnor

Her favorite food is hot pot