Bobcat -- A language that is like Tiger , but smaller and less frightening.

Bobcat is designed to let us look at some issues of compiling expressions, flow control statements, and local variables, while ignoring many of the more sophisticated issues that arise in a complete compiler such as the Tiger compiler for CS350. Bobcat is, for the most part, a subset of Tiger.

Bobcat language guide

A Bobcat program is made up of a sequence of variable and function declarations, with comments allowed anywhere whitespace is allowed. Comments are any text within /* and */ (possibly multiple lines). Declarations have the form

var name : type

var name : type := expression

(for a variable), or

function name ( name: type, name : type ... ) =

(

expression;

expression;

...

)

(for a function). A type may be either int or double ; An expression may be any of the following: