COMPORT – Compilador Portugol - Nilo Menezes
COMPORT – Compilador Portugol - Nilo Menezes
COMPORT – Compilador Portugol - Nilo Menezes
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
PARSER.H<br />
#ifndef IPARSER<br />
#define IPARSER<br />
#include <br />
#include <br />
#include <br />
#include "scanner.h"<br />
#include "codegenerator.h"<br />
#include "risc.h"<br />
#include "funcoes.h"<br />
#define WordSize 4<br />
#ifndef PARSER<br />
extern int sym;<br />
extern int loaded;<br />
extern Object topScope;<br />
extern Object universe;<br />
extern Object guard;<br />
#endif<br />
#define VERSAO "0.92"<br />
void NewObj (Object & obj, int Class);<br />
void find (Object & obj);<br />
void FindField (Object & obj, Object list);<br />
int IsParam (Object obj);<br />
void OpenScope (void);<br />
void CloseScope (void);<br />
void selector (Item & x);<br />
void factor (Item & x);<br />
void term (Item & x);<br />
void SimpleExpression (Item & x);<br />
void expression (Item & x);<br />
void parameter (Object & fp);<br />
void param (Item & x);<br />
void StatSequence (void);<br />
void IdentList (int Class, Object & first);<br />
void fType (Type & type);<br />
ComPort <strong>–</strong> <strong>Compilador</strong> <strong>Portugol</strong><br />
65