CS 214: Programming Languages
Spring 2009

Home|Syllabus|Schedule
<<|>>|ANTLR API|CITkit API|PolyD API|EasyMock API

Multiplying Integers
Interpreters, Iteration 6

User Story

Your client interrupts you with this story. You figure it should be easy enough to add now (before you deal with adding strings).

User Story #6: Interpreter evaluates a two-value product.

A Hobbes program can be the multiplication of two integers.

Example: 2 * 3 evaluates to 6.

Some languages allow "a" * 4 which results in "aaaa". I'm sure if your client wants this, you'll be told.

On Your Own

This is an iteration you'll do on your own. Here are some things to consider: