SE250:lab-9:hlin079

From Marks Wiki
Revision as of 05:20, 3 November 2008 by Mark (Sọ̀rọ̀ | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bool eqToken( Token a, Token b ) { if (a.type!=b.type){ return false;} if (type==){ return a.val.intval==b.val.intval; } if (type==T_FLOAT){ return a.val.fltval==b.val.fltval}

if (type==T_SYMBOL){ return a.val.symval==b.val.symval; }

if (type==T_STRING){ return a.val.strval==b.val.strval; } if ((tyep==T_END)||(type==T_NOTHING)){ return true; }


} lost ...............lost............... coming back soon.................