[antlr-interest] help: using antlr

Smiley 4321 ssmile03 at gmail.com
Thu Feb 25 06:37:51 PST 2010


Hello.

I am looking for small parallel program if antlr can understand -
-----
#include <stdio.h>
#include ,mpi.h>

int main(int argc, char *argv[] )
{
 int numprocs, namelength, rank;
 char processor_name[MPI_MAX_PROCESSOR_NAME];

MPI_Init(&argc, &argv);
MPI_Comm_size (MPI_COMMON_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelength);

printf("Process %d, on %s out of %d\n", rank, processor_name, numprocs):

MPI_Finalize();
}
----

I am very new to antlr and as an assignment, I hav to work with antlr for
above mpi code.

±Smiley

>


More information about the antlr-interest mailing list