Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

protomake.y File Reference

#include <map>
#include <vector>
#include <typeinfo>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "nodes/protomake.h"

Include dependency graph for protomake.y:

Include dependency graph

Go to the source code of this file.

Functions

Message new Identifier ($9->getPosition(), $3)
RealProcess new Identifier ($4->getPosition(), $3)
ArrayReference new Identifier ($2->getPosition(), $1)
int main (int argc, char **argv)
int yyerror (char *msg)
void generateEtherealPlugin (map< string, vector< FieldInfo > > *fiMap, multimap< EtherType, EtherInfoType > *eit)
void writeHeader (FILE *plugin, char *fileName, multimap< EtherType, EtherInfoType > *eit)
void writeDissector (FILE *plugin, map< string, vector< FieldInfo > > *fiMap, multimap< EtherType, EtherInfoType > *eit)
void writeRest (FILE *plugin, char *trans, char *port, char *abbrev)

Variables

tBAND nonassoc tNEG nonassoc tLT
tBAND nonassoc tNEG nonassoc tLTE
tBAND nonassoc tNEG nonassoc tGT
tBAND nonassoc tNEG nonassoc tGTE
tBAND nonassoc tNEG nonassoc tEQUAL
tBAND nonassoc tNEG nonassoc
tDIFFERENT left tASSIGN left 
tPLUS
tBAND nonassoc tNEG nonassoc
tDIFFERENT left tASSIGN left
tMINUS left 
tTIMES
tBAND nonassoc tNEG nonassoc
tDIFFERENT left tASSIGN left
tMINUS left tDIVIDE left UMINUS 
Program
Imports __pad0__
ReallyImport __pad1__
Import __pad2__
StringLiteralstr = new StringLiteral(srcPos, $2)
Behaviors __pad3__
RealBehavior __pad4__
Behavior __pad5__
Messages __pad6__
Message __pad7__
External __pad8__
MessageBody __pad9__
Fields __pad10__
Field __pad11__
Init __pad12__
FieldType __pad13__
BitByte __pad14__
StrType __pad15__
info number = $3
Processes __pad16__
RealProcess __pad17__
DeclarationTypes __pad18__
DeclarationTypes true
Global __pad19__
Declarations __pad20__
IDs __pad21__
Type __pad22__
Actions __pad23__
Action __pad24__
GuardedAction __pad25__
Expression __pad26__
FieldReference __pad27__
ArrayReference __pad28__
ArrayPosition __pad29__
Statements __pad30__
Statement __pad31__
LeftSides __pad32__
LeftSide __pad33__
Expressions __pad34__
GuardedStatements __pad35__
GuardedStatement __pad36__


Function Documentation

void generateEtherealPlugin map< string, vector< FieldInfo > > *  fiMap,
multimap< EtherType, EtherInfoType > *  eit
[static]
 

Generates an Ethereal plugin

Check if more than one or if no name/port/transport protocol was defined!

Create a file with the correct name to write the plugin

This alters the element in the multimap. Any statement like this will.

Write file header

Declare necessary globals

Write protocol dissector

Write protocol register function

Setup the list of header fields

Write rest of file

Definition at line 8655 of file protomake.y.

ArrayReference new Identifier $2->  getPosition(),
1
 

Terminou

RealProcess new Identifier $4->  getPosition(),
3
 

Terminado...

Message new new new Identifier $9->  getPosition(),
3
 

Message terminado

int main int  argc,
char **  argv
 

Definition at line 8602 of file protomake.y.

void writeDissector FILE *  plugin,
map< string, vector< FieldInfo > > *  fiMap,
multimap< EtherType, EtherInfoType > *  eit
[static]
 

Really dissect the message now! :)_/

Definition at line 8962 of file protomake.y.

void writeHeader FILE *  plugin,
char *  fileName,
multimap< EtherType, EtherInfoType > *  eit
[static]
 

Definition at line 8877 of file protomake.y.

void writeRest FILE *  plugin,
char *  trans,
char *  port,
char *  abbrev
[static]
 

Definition at line 9085 of file protomake.y.

int yyerror char *  msg  ) 
 

Definition at line 8646 of file protomake.y.


Variable Documentation

Imports __pad0__
 

Imports terminado!!!

Definition at line 8165 of file protomake.y.

Fields __pad10__
 

Fields terminado!!!

Definition at line 8251 of file protomake.y.

Field __pad11__
 

Field terminado!!!

Definition at line 8259 of file protomake.y.

Init __pad12__
 

Init terminado!!!

Definition at line 8273 of file protomake.y.

FieldType __pad13__
 

FieldType terminado!!!

Definition at line 8281 of file protomake.y.

BitByte __pad14__
 

BitByte deve ser modificado!!

Definition at line 8295 of file protomake.y.

StrType __pad15__
 

Definition at line 8302 of file protomake.y.

Processes __pad16__
 

Terminado!

Definition at line 8329 of file protomake.y.

RealProcess __pad17__
 

Terminado...

Definition at line 8341 of file protomake.y.

DeclarationTypes __pad18__
 

Terminou

Definition at line 8351 of file protomake.y.

Global __pad19__
 

Definition at line 8362 of file protomake.y.

ReallyImport __pad1__
 

ReallyImport terminado!!!

Definition at line 8173 of file protomake.y.

Declarations __pad20__
 

Terminou

Definition at line 8370 of file protomake.y.

IDs __pad21__
 

IDs terminado!!!

Definition at line 8383 of file protomake.y.

Type __pad22__
 

Terminou

Definition at line 8399 of file protomake.y.

Actions __pad23__
 

Terminou

Definition at line 8410 of file protomake.y.

Action __pad24__
 

Terminou

Definition at line 8419 of file protomake.y.

GuardedAction __pad25__
 

GuardedAction timeout!!!

Definition at line 8425 of file protomake.y.

Expression __pad26__
 

Terminou

Definition at line 8446 of file protomake.y.

FieldReference __pad27__
 

Terminou

Definition at line 8499 of file protomake.y.

ArrayReference __pad28__
 

Terminou

Definition at line 8506 of file protomake.y.

ArrayPosition __pad29__
 

Terminou

Definition at line 8512 of file protomake.y.

Import __pad2__
 

Import terminado!!!

Definition at line 8185 of file protomake.y.

Statements __pad30__
 

Terminou

Definition at line 8517 of file protomake.y.

Statement __pad31__
 

Statement terminado!!!

Definition at line 8523 of file protomake.y.

LeftSides __pad32__
 

LeftSides terminado!!!

Definition at line 8558 of file protomake.y.

LeftSide __pad33__
 

LeftSide terminado!!!

Definition at line 8568 of file protomake.y.

Expressions __pad34__
 

Expressions terminado!!!

Definition at line 8575 of file protomake.y.

GuardedStatements __pad35__
 

GuardedStatements terminado!!!

Definition at line 8585 of file protomake.y.

GuardedStatement __pad36__
 

GuardedStatement terminado!!!

Definition at line 8596 of file protomake.y.

Behaviors __pad3__
 

Behaviors terminado!!!

Definition at line 8194 of file protomake.y.

RealBehavior __pad4__
 

RealBehavior terminado!!!

Definition at line 8201 of file protomake.y.

Behavior __pad5__
 

Behavior terminado!!!

Definition at line 8212 of file protomake.y.

Messages __pad6__
 

Messages terminado!!!

Definition at line 8218 of file protomake.y.

Message __pad7__
 

Message terminado

Definition at line 8226 of file protomake.y.

External __pad8__
 

External terminado!!!

Definition at line 8239 of file protomake.y.

MessageBody __pad9__
 

MessageBody terminado!!!

Definition at line 8245 of file protomake.y.

info number = $3
 

Definition at line 8303 of file protomake.y.

tBAND nonassoc tNEG nonassoc tDIFFERENT left tASSIGN left tMINUS left tDIVIDE left UMINUS Program
 

Program Terminado

Definition at line 8145 of file protomake.y.

StringLiteral* str = new StringLiteral(srcPos, $2)
 

Definition at line 8186 of file protomake.y.

Referenced by StringLiteral::getStr(), StringLiteral::StringLiteral(), TypeCheckerVisitor::visitActStatement(), TypeCheckerVisitor::visitFieldType(), TypeCheckerVisitor::visitIdentifier(), TypeCheckerVisitor::visitSimpleFieldDeclaration(), TypeCheckerVisitor::visitSimpleProcess(), and TypeCheckerVisitor::visitStartStatement().

tBAND nonassoc tNEG nonassoc tEQUAL
 

Definition at line 8145 of file protomake.y.

tBAND nonassoc tNEG nonassoc tGT
 

Definition at line 8145 of file protomake.y.

tBAND nonassoc tNEG nonassoc tGTE
 

Definition at line 8145 of file protomake.y.

tBAND nonassoc tNEG nonassoc tLT
 

Definition at line 8145 of file protomake.y.

tBAND nonassoc tNEG nonassoc tLTE
 

Definition at line 8145 of file protomake.y.

tBAND nonassoc tNEG nonassoc tDIFFERENT left tASSIGN left tPLUS
 

Definition at line 8145 of file protomake.y.

DeclarationTypes true
 

Terminou

Definition at line 8351 of file protomake.y.

tBAND nonassoc tNEG nonassoc tDIFFERENT left tASSIGN left tMINUS left tTIMES
 

Definition at line 8145 of file protomake.y.


Generated on Mon Dec 1 17:12:01 2003 for Protomake by doxygen1.3