Юлия Козлова
Помогите доделать пожалуйста лабу по информатике с++
enum EState {S, Ai, Ac, As, Bs, Cs, Ds, Gs, E, F};
enum ELexType{ lWhile, lDo, lEnd, lAnd, lOr, lRel, lAs, lAo,
lVar, lConst };
struct Lex{
ELexType type;
int index;
int pos;
Lex* next;
} *pFirst = NULL, *pLast = NULL;
bool LexAnalysis( const char* text )
{
const char *str = text, *lexstart;
EState state = S, prevState;
int add;
while ((state != E) && (state != F))
{
prevState = state;
add = true;
switch (state) {
case S: {
if (isspace(*str)) ;
else if (isalpha(*str)) state = Ai;
else if (isdigit(*str)) state = Ac;
else if (*str=='