SIMDC12 Parser

See the handout for project specifications....

Example Input & Output

As a simple example, input (on stdin) of:

poly[42] abc;     mono:
16     p;
func(poly def) {        if(abc >23)   {  def=p*5+abc[IPROC+1];}}

Should yield output (to stdout) very similar to the following HTML:

poly[42] abc;
mono:16 p;
func(poly def)
{
  if (abc>23)
  {
    def=p*5+abc[IPROC+1];
  }
}

There are some free choices you may make in formatting. For example, you may insert spaces around operators, treat declarations like poly a, b; as if it had been written poly a; poly b;, insert blank lines before function definitions, etc. Thus, it is not expected that you will all generate absolutely identical output.

For this example, your parser also should produce a warning (to stderr) of:

3:	warning:	this precision may be expensive

Submission Procedure

The parser is to be submitted in the form of a "tarball" created using tar. In the tarball should be:

After you have registered with the server, submit the tarball here:

Your email address is .

Your password is .

Which type of student are you?
Undergraduate registered for EE599-004
Graduate registered for EE699-001

Although this is not a secure server, users are bound by the UK code of conduct not to abuse the system. Any abuses will be dealt with as serious offenses.


http://aggregate.org/STCH/ Software Tools for Custom Hardware